Browse Source

erste version des lottospiel:

Nour.Kayali 5 years ago
commit
2dd02ee65b
1 changed files with 20 additions and 0 deletions
  1. 20 0
      Lottospiel.py

+ 20 - 0
Lottospiel.py

@@ -0,0 +1,20 @@
+#Nour Kayali
+#15.01.2019
+#Lottospiel
+
+import random
+gezZahlen=[]
+#Z=random.randint(1,45)
+
+while True:
+	Z=random.randint(1,45)
+	if Z not in gezZahlen:
+		gezZahlen.append(Z)
+	if len(gezZahlen)==6:
+			break
+print "die gewinnzahlen sind"
+print gezZahlen
+
+Zusatzzahl=random.randint(1,9)
+print"die Zusatzzahl ist"
+print Zusatzzahl