+ 7
return is used in functions to give back data like string, integer, float, bool or other objects to the calling expression. so in the following example return will give back a calculation of 2 integer values given from the calling expression. def cal(x, y): return x**2 + y**2 print(cal(2,3)) # result will be 13 see also python tutorial : https://www.sololearn.com/learn/Python/2287/
8th Jul 2019, 4:02 PM
Lothar
Lothar - avatar