+ 1

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
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...
12th Dec 2024, 2:24 AM
BroFar
BroFar - avatar
+ 5
Abby Pramanik , your posts here has been reported as spam...
13th Dec 2024, 11:32 AM
Lothar
Lothar - avatar
12th Dec 2024, 9:19 PM
Lothar
Lothar - avatar
+ 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
12th Dec 2024, 9:23 PM
Lothar
Lothar - avatar
+ 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 ] .
13th Dec 2024, 4:35 PM
Captain Thunder ⚡
Captain Thunder ⚡ - avatar