Return | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antworten
+ 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