Ciclo De Dados Python

import random as rd

c=0
while c <3:
    a=rd.randrange(1,7)
    b=rd.randrange(1,7)
    print (a)
    print(b)
    if a == b:
        c +=1
    else:
        print("sigue")
       
print (c)

Share this

Related Posts

Previous
Next Post »