Smipple is shutting down Nov 30, 2017. Some features are currently disabled.
Profile image for Thomas Simonsen simoth00
Random
Language
Python
Tags
Random

Ratespiel_1

1 import random 2 3 a = random.randint(1,10) 4 b = random.randint(1,10) 5 c = a + b 6 7 print('Die Aufgabe:', a, '+', b) 8 9 z = int(input('Was ist die Loesung: ')) 10 11 if z == c: 12 print('Richtig')

Comments