0
How can I use "Return" I don't understand đ
Example: Def you_can_in(age)
3 Answers
+ 4
def you_can_in(age):
return age
num = int(input("enter any number:"))
print(you_can_in(num))
The num becomes age in the function you_can_in() and returns the result back to the print statement...
+ 1
Daniel Hidalgo ,
see a sample in the attached file:
https://sololearn.com/compiler-playground/c8w79FUr1j7u/?ref=app
+ 1
Daniel Hidalgo ,
additionally you can find some more details in short tutorial located in the community section:
https://www.sololearn.com/learn/o-JUMP_LINK__&&__Python__&&__JUMP_LINK/2287/?ref=app