Python Als Of
Of
Het or
sleutelwoord is een logische operator en wordt gebruikt om voorwaardelijke instructies te combineren:
Voorbeeld
Test als a
groter is dan
b
, OF als a
groter is dan c
:
a = 200
b = 33
c = 500
if a > b or a > c:
print("At least one of the conditions is True")