+ 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!
6 Answers
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!