Python Als AND
En
Het sleutelwoord en is een logische operator en wordt gebruikt om voorwaardelijke instructies te combineren:
Voorbeeld
Test als a
groter is dan
b
, EN als c
groter is dan a
:
a = 200
b = 33
c = 500
if a > b and c > a:
print("Both conditions are True")