+ 1
What is the difference between return 0 and return 1 in python?
Briefly explain what does it mean I confused?
1 Answer
+ 6
If a function returns 0 or 1 this can mean 2 things:
- it can be seen as integer values which can be used for calculation from the calling program.
- it can also be seen as True (1) and False (0) and can be checked with a conditional statement.