+ 3
The usage of “or”. I cannot understand how this works...(python)
I can’t understand the following code: a = 5 or 7 print(a) #prints “5” b = 0 or 5 print(b) #prints “5” How does “or” work here? Thx!
4 ответов
I can’t understand the following code: a = 5 or 7 print(a) #prints “5” b = 0 or 5 print(b) #prints “5” How does “or” work here? Thx!