-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlotto1.py
53 lines (50 loc) · 1.71 KB
/
lotto1.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import sys, os
a = []
b=32
c=32
d=32
def pickThree():
while True:
try:
b = input("Input the first didgit of the last pick three number:")
if b not in [0,1,2,3,4,5,6,7,8,9]:
print"Not valid input. Input the first single digit."
pass
else:
a.append(b)
break
except:
print"Not valid input. Input the first single digit."
pass
while True:
try:
c = input("Input the second didgit of the last pick three number:")
if c not in [0,1,2,3,4,5,6,7,8,9]:
print"Not valid input. Input the second single digit."
pass
else:
a.append(c)
break
except:
print"Not valid input. Input the second single digit."
pass
while True:
try:
d = input("Input the third didgit of the last pick three number:")
if d not in [0,1,2,3,4,5,6,7,8,9]:
print"Not valid input. Input the third single digit."
pass
else:
a.append(d)
break
except:
print"Not valid input. Input the third single digit."
pass
z = a[0]
x = a[1]
y = a[2]
print "%d,%d,%d"%(((round(z + (3.141592653**.5)))%10),((round(x + (3.141592653**.5)))%10),((round(y + (3.141592653**.5)))%10))
print "%d,%d,%d"%(((round(z + (3.141592653)))%10),((round(x + (3.141592653)))%10),((round(y + (3.141592653)))%10))
print "%d,%d,%d"%(((round(z + (3.141592653**2)))%10),((round(x + (3.141592653**2)))%10),((round(y + (3.141592653**2)))%10))
raw_input("done!!")
pickThree()