0

How can I use "Return" I don't understand 😅

Example: Def you_can_in(age)

12th Dec 2024, 1:38 AM
Daniel Hidalgo
Daniel Hidalgo - avatar
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...
12th Dec 2024, 2:24 AM
BroFar
BroFar - avatar
12th Dec 2024, 9:19 PM
Lothar
Lothar - avatar
+ 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
12th Dec 2024, 9:23 PM
Lothar
Lothar - avatar