1# This is a simple 3 number multipler, for example:- it mutiplies the same number three times
2def cube(num):
3 return num*num*num
4
5result = cube(4)
6print(result)
7
1#the return function is used to return a value from a function
2def double(number):
3 return number * 2
1''' if you don't know def can make a function,
2I am making a simple squaring function to explain'''
3# space after parentisis is needed
4def square(x) :
5 s = x*x
6 # do it with the return keyword!
7 return s