PYTHON BEGINNERS - 13 : RETURN STATEMENT
IN THIS TUTORIAL, WE WILL LEARN ABOUT RETURN STATEMENT
def cube(num):
# print(num*num*num)
# cube(3)
# OR
return num*num*num #-->return statement
print(Code) #--> cannot print this line becoz of return
result = cube(4)
print(result)
Comments
Post a Comment