De volgende code bevat inspringfouten. Herstel de code zodat alle zes regels correct worden afgedrukt.
x = 3
y = 4
if x == 3 and y == 4:
print("x is 3")
print("y is 4")
if x > 2 and y < 5:
print("x > 2")
print("y < 5")
if x < 4 and y > 3:
print("x < 4")
print("y > 3")
Verwachte uitvoer:
x is 3
y is 4
x > 2
y < 5
x < 4
y > 3