Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
quiz4 [2013/04/08 21:06] admin |
quiz4 [2014/03/09 21:31] (aktuell) admin |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Quiz 4 ====== | ====== Quiz 4 ====== | ||
- | <code python> | + | <code python quiz4.py> |
- | # Python für Kids -- 4. Auflage, Kapitel 4 | + | |
- | # Autor: Gregor Lingl | + | |
- | # Datum: 6. 8. 2009 | + | |
- | # miniquiz04.py : Python für Kids, Kapitel 4 | + | |
- | # Quiz aus drei Fragen. | + | |
def quizfrage(): | def quizfrage(): | ||
global punkte | global punkte | ||
- | antwort = input(frage) | + | antwort = raw_input(frage) |
if antwort == loesung: | if antwort == loesung: | ||
print("Richtig!") | print("Richtig!") |