Return | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren


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 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