34 lines
929 B
Python
34 lines
929 B
Python
punkte=0
|
|
|
|
#Frage 1
|
|
korrekt="c"
|
|
print("Welchees ist die größte Wüste")
|
|
print("a-Gobi\nb-Sahra\nc-Antarktis\nd-Arktis")
|
|
|
|
antwort = str(input("Ihre Antwort:"))
|
|
#str sthet für String, also eine Zeichenkette aus einem oder mehreren Buchstaben
|
|
|
|
if antwort==korrekt:
|
|
print ('Die Antowrt: "%s" ist richtig.'%(antwort))
|
|
punkte=punkte+1
|
|
print("Sie haben jetzt %sPunkte."%(punkte))
|
|
else:
|
|
print ('Die Antwort: "%s" ist falsch.'%(antwort))
|
|
print("Sie haben jetzt %sPunkte."%(punkte))
|
|
|
|
|
|
#Frage 2
|
|
korrekt="c"
|
|
print("")
|
|
print("a-\nb-\nc-\nd-")
|
|
|
|
antwort = str(input("Ihre Antwort:"))
|
|
#str sthet für String, also eine Zeichenkette aus einem oder mehreren Buchstaben
|
|
|
|
if antwort==korrekt:
|
|
print ('Die Antowrt: "%s" ist richtig.'%(antwort))
|
|
punkte=punkte+1
|
|
print("Sie haben jetzt %sPunkte."%(punkte))
|
|
else:
|
|
print ('Die Antwort: "%s" ist falsch.'%(antwort))
|
|
print("Sie haben jetzt %sPunkte."%(punkte)) |