추가 'game<uncompleted>'

This commit is contained in:
kim_yubin 2018-10-26 20:31:48 +09:00
parent c41f4d35eb
commit e5a24cf6fc
1 changed files with 29 additions and 0 deletions

29
game<uncompleted> Normal file
View File

@ -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)