score = 0 print('Raad het dier!') Raad1 = input('welke beer leeft op de noordpool?') def check_raad(raad, antwoord): global score if raad == antwoord: print('Correct antwoord') score = score + 1 check_raad(raad1, 'ijsbeer') Raad2 = input('Hoeveel magen heeft een vogel? (vul alleen een cijfer in)') def check_raad(raad, antwoord): global score if raad == antwoord: print('Correct antwoord') score = score + 1 check_raad(raad2, '2') Raad3 = input('Hoeveel harten heeft een octopus? (vul alleen een cijfer in)') def check_raad(raad, antwoord): global score if raad == antwoord: print('Correct antwoord') score = score + 1 check_raad(raad3, '3') Raad4 = input('Welke kleur huid heeft een ijsbeer?') def check_raad(raad, antwoord): global score if raad == antwoord: print('Correct antwoord') score = score + 1 check_raad(raad4, 'zwart') Raad5 = input('OP ongeveer hoeveel watt werkt een menselijk brein? vul alleen een cijfer in') def check_raad(raad, antwoord): global score if raad == antwoord: print('Correct antwoord') score = score + 1 check_raad(raad5, '15') Raad6 = input('Kunnen eekhoornen boeren? vul ja of nee in') def check_raad(raad, antwoord): global score if raad == antwoord: print('Correct antwoord') score = score + 1 check_raad(raad6, 'nee') Raad7 = input('Hoe vaak klopt het hart van een muis per minuut? vul alleen een cijfer in') def check_raad(raad, antwoord): global score if raad == antwoord: print('Correct antwoord') score = score + 1 check_raad(raad7, '600')
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question