추가 'game<uncompleted>'
This commit is contained in:
parent
c41f4d35eb
commit
e5a24cf6fc
|
|
@ -0,0 +1,29 @@
|
||||||
|
import random
|
||||||
|
generated=[]
|
||||||
|
inputed=[]
|
||||||
|
c=0
|
||||||
|
a=0
|
||||||
|
b=0
|
||||||
|
t=0
|
||||||
|
|
||||||
|
while t<3:
|
||||||
|
a = random.randint(0, 9)
|
||||||
|
if not a in generated:
|
||||||
|
generated.append(a)
|
||||||
|
t += 1
|
||||||
|
t=0
|
||||||
|
while t<3:
|
||||||
|
a = int(input("첫번째 : "))
|
||||||
|
inputed.append(a)
|
||||||
|
a = int(input("두번째 : "))
|
||||||
|
inputed.append(a)
|
||||||
|
a = int(input("세번째 : "))
|
||||||
|
inputed.append(a)
|
||||||
|
if not a in generated:
|
||||||
|
inputed.append(a)
|
||||||
|
t += 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
print(generated)
|
||||||
|
print(inputed)
|
||||||
Loading…
Reference in New Issue