Python As Or
Of
Die or
sleutelwoord is 'n logiese operateur, en word gebruik om voorwaardelike stellings te kombineer:
Voorbeeld
Toets as a
is groter as
b
, OF as a
is groter as c
:
a = 200
b = 33
c = 500
if a > b or a > c:
print("At least one of the conditions is True")