浏览代码

Zur Vorgängerversion wurde alles verändert :)

Dave 5 年之前
当前提交
0c5cd90bc5
共有 1 个文件被更改,包括 20 次插入0 次删除
  1. 20 0
      Lotto.py

+ 20 - 0
Lotto.py

@@ -0,0 +1,20 @@
+import random
+i=1
+list =[]
+
+#6 aus 49
+while i <= 6:
+	x = random.randint(1, 49)
+	if x in list:
+		pass
+	else:
+		list.append(x)
+		i +=1
+
+print"Ihre Lottozahlen sind:"
+print list
+
+#Superzahl
+y = random.randint(1, 9)
+print"Die Supeerzahl lautet:"
+print y