I have the following code:
from random import randint
Roll=[]
for i in range(3):
zari=randint(1,6)
Roll.append(zari)
for b in Roll:
the above code is deficient.
What i want my code to do is if inside the Roll list is the combination of numbers 4,5,6 to print('Player won')but im kinda lost
Any suggestions?
The player wins if the combinations of the numbers is 4,5,6 and he loses if the combination is 1,2,3.This is the code that i managed to make but i cant figure out the rest of it
Also i forgot to mention that player wins if the combination is 2 same numbers followed by the number 6 for example 2,2,6. Any ideas on this ?
Thank you for every answer