Geheim getal (loops)

Sign in to test your solution.
# Dit stuk code is gegeven en moet je niet veranderen. # Wel moet je de hier aangemaakte variabele gebruiken. import random random.seed(3) # Zorgt ervoor dat het geheime getal de hele tijd hetzelfde is. Is nodig voor het automatisch nakijken. geheim_getal = random.randint(1,100) # geheim_getal wordt een willekeurig geheel getal tussen 1 en 100. print("Ik heb een getal tussen 1 en 100 in gedachten. Probeer het te raden!") geraden_getal = input() # Schrijf hier de inhoud van je eigen loop: # Als je de loop goed hebt geschreven, eindigt deze als de gebruiker het goede getal heeft # geraden. In dat geval wordt de volgende boodschap geprint: print("Gefeliciteerd! Je hebt het goed geraden.")
You can submit as many times as you like. Only your latest submission will be taken into account.
Sign in to test your solution.

  Python sandbox

This window allows you to run Python code without installing a thing. The code you write here is not automatically submitted to Dodona. This feature is still in full development, so we're happy to hear about your suggestions and issues using the contact form.