Return | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson


I just started coding and i still don’t really get what it means to “return a value” someone plz help

26th Apr 2018, 5:03 PM
Selim Jerad
Selim Jerad - avatar
2 Answers
+ 5 Functions that return values can be used in expressions, just like in math class. When an expression with a function call is evaluated, the function call is effectively replaced temporarily by its returned value. Inside the Python function, the value to be returned is given by the expression in the return statement.
26th Apr 2018, 5:13 PM
Scooby - avatar
Scooby🍔 Scooby dooby doooooooo! Great answer ☺
26th Apr 2018, 5:50 PM