0

Return

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 Respostas
+ 5
https://anh.cs.luc.edu/JUMP_LINK__&&__python__&&__JUMP_LINK/hands-on/3.1/handsonHtml/functions.html 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
Scooby - avatar
0
Scooby🍔 Scooby dooby doooooooo! Great answer ☺
26th Apr 2018, 5:50 PM
Emma