+ 1
How can I use "Return" I don't understand đ
Example: Def you_can_in(age)
5 Answers
+ 6
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...
+ 5
Abby Pramanik ,
your posts here has been reported as spam...
+ 4
Daniel Hidalgo ,
see a sample in the attached file:
https://sololearn.com/compiler-playground/c8w79FUr1j7u/?ref=app
+ 4
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
+ 3
By using `return` in python functions, you can easily use that function as variables and assign other variables with it [ as the function returns the results when called ] .