How does "return" works?


#1


well,I have got the right answer.
But I really want to know:why I can`t use "return" this way
help plz


#2

It's simple actually. return wont print your result, and you need it printed. You want to use it this way?
Call function like this:

print power(37, 4)

But you must print the result. Either as part of function, or return it from function and print it outside.


#3

thank you for your reply,I got it !:grinning: