4 ms·
I do not remember C(at least C89) having false at all, so I do not see that Python would base its behaviour on C.
by sireat 13y ago
I do not remember C(at least C89) having false at all, so I do not see that Python would base its behaviour on C.
- ufo 13y agoBoth C and Python treat the number 0 as falsy if you use it in an if statement. On the other hand, Ruby and Clojure treat 0 as truthy if you pass it in an if statement if(0){ //Ruby and Clojure go here }else{ //C and Python go here }