Drop links or images here to add them to the editor.

Opdracht 4.16: voor welke waarden van getal zal B worden geprint?

getal = 0

if getal < 3:
    print("A")
else:
    if getal < 6:
        print("B")
    else:
        print("C")
Antwoord

B wordt geprint als getal >= 3 én getal < 6, dus als getal 3, 4 of 5 is.