Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- l1 = [] #изтеглени числа
- l2 = [] #избрани от потребителя числа
- sum = 0
- d = range(1,50)
- l1 = random.sample(d, 6)
- print(l1)
- c = 0
- while c < 6:
- b = int(input())
- if b >= 1 and b < 50 and b not in l2:
- l2.append(b)
- c+=1
- print(l2)
- for i in range(len(l2)): #теглене на числата
- if l2[i] in l1:
- sum += 1
- print(sum)
- if sum == 3:
- print("Win 300")
- elif sum == 5:
- print("Win 500")
- elif sum == 6:
- print("Ground price")
- else:
- print("No win")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement