I am trying to make a very simple poker game in Python. Let's say I for example generate six random numbers by simply using the randint function. Would it be possible to cross-check all the numbers that get generated? An example of code could be this:
dice1=randint(1,6)
dice2=randint(1,6)
dice3=randint(1,6)
dice4=randint(1,6)
dice5=randint(1,6)
dice6=randint(1,6)
I know that I can do something along the lines of this to check if they are equal to eachother or not:
if dice1==dice2 && dice2==dice3 && dice3==dice4 && dice4==dice5 && dice5==dice6:
/////whatever function
The question is if it is possible to check if I can check if dice1==dice6 in a short and easy way, while also checking all the other dice their similarities or differences.