-2
I couldn’t do a function that simulates a two-dice game and counts how many times the dice were played until repeated numbers come out.
def dados():
dado1 = [random.randint(1,6)]
dado2 = [random.randint(1,6)]
if dado1 == dado2:
return
My problem was not knowing what to return to count the number of times the daodos were played until repeated numbers came out.
If the answer solved your problem and there is no doubt left, mark it as correct/accepted by clicking on the " " that is next to it, which also marks your question as solved. If you still have any questions or would like further clarification, feel free to comment.
– Augusto Vasques