Warning! It seems that you are using Dodona within another webpage, so not everything may work properly. Let your teacher know so that he can solve the problem by adjusting a setting in the learning environment. In the meantime, you can click
this link to open Dodona in a new window.
Warning! The page was not fully loaded, probably because of a network issue. It could be that not all functionalities work as expected. Please try reloading the page.
Voorwaardelijke herhaling - Demo
zout = int(input("Gewicht zout in waterverzachter: "))
aantal_zakken = 0
gewicht_zoutzak = int(input("Gewicht zak zout: "))
if zout + gewicht_zoutzak <= 100:
zout += gewicht_zoutzak
aantal_zakken += 1
gewicht_zoutzak = int(input("Gewicht zak zout: "))
print(f"{aantal_zakken=} {zout=}")