- 2

Python func res

What is the res in python, i really can't get my head on it res = 0/1

28th Jul 2021, 11:01 PM
Tomoe
Tomoe - avatar
1 Answer
0
res is just an abbreviated form of "result". It's a common name for variables used to hold the current value of a series of calculations in a routine or function, and is returned at the end of a function with: return result Simple as that.
29th Jul 2021, 12:19 AM
BootInk
BootInk - avatar