warum?
Code: Alles auswählen
import random
random.seed()
punkte = 0
punkt_punkte = "Punkt"
while True:
a = random.randint(1, 10)
b = random.randint(1, 10)
c = a + b
if punkte == 0 or punkte > 1:
punkt_punkte = "Punkte"
if punkte == 1:
punkt_punkte = "Punkt"
print "du hast ", punkte , " ", punkt_punkte,
print "was gibt " ,a , " + " ,b , " ?:"
input1 = raw_input()
eingabe = int(input1)
if eingabe == c:
punkte = punkte =+ 1
print "die Antwort", eingabe, "war richtig"