Hi, beginner python question.

The task is, throw 3 dices and see how many throws it takes before all three dices show the same value. The number of repitions should print with the numbers generated.

I dont understand how I should write the while loop code and make it stop when I have the same value on the dices.

This is what I got so far, I dont understand where to go from here.

```
import random
def terninger(start, end):
result = []
for i in range(1):
tall = random.randint(1,6)
result.append(tall)
return result
a = terninger(1,6)
b = terninger(1,6)
c = terninger(1,6)
print(a,b,c)
```