# Guess the Dice
import random

spin_count=0
wins=0
while True:
    users_guess=int(input("Guess the roll of the dice"))

    number=random.randrange(1,7)
    spin_count = spin_count +1

    print("Number of spins {}.  The roll is: {} ".format(spin_count,number))

    if number==users_guess:
        wins += 1
        win_percent=wins/spin_count
        print("This is win number {}.  You win percentage is {}".format(wins,win_percent))
    else:
        print("You lose")

