#Condition 1:
a = 1
b = 5
c = a or b
d = b or a
print(c)
>>> 1
print(d)
>>> 5
#Condition 2:
a = 1
b = None
c = a or b
d = b or a
print(c)
>>> 1
print(d)
>>> 1
11-21
3139
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
#Condition 1:
a = 1
b = 5
c = a or b
d = b or a
print(c)
>>> 1
print(d)
>>> 5
#Condition 2:
a = 1
b = None
c = a or b
d = b or a
print(c)
>>> 1
print(d)
>>> 1