Snippets Collections
#define a function 
 1.Def cube(num)
      #write the formula of cube
      2.return num*num*num
     #give the number to calculate the cube 
     3.cube(3)
   # print the cube of that number simply by using print command
    4.print(cube(3))
     5.“return” keyword means that function have to return value         
star

Tue Mar 31 2020 05:43:21 GMT+0000 (Coordinated Universal Time) https://www.youtube.com/watch?v=rfscVS0vtbw&t=5s

#python #function #returnfunction

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension