how do i make this program more detailed and tell me the winning percentages after i played it in? : So far this craps game works in python but i need to add the winning percentage after you played it. Plus, how do i make it where the players response has to be "yes" or "no" in order to run? It will run no matter what.And is there way to replace "break" in this program?

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-css -->

    import random
    first_roll = 0

    def play():
        yesOrno = str(input('Would you like to play? '))
        yesOrno = yesOrno[0].lower()

        
        while yesOrno == 'y':
            throw_1 = random.randint(1,6)
            throw_2 = random.randint(1,6)
            total = throw_1 + throw_2
           

            if total == (2,12):
                yesOrno = str(input('You lost! Would you like to play again?'))
                yesOrno = yesOrno[0].lower()

            elif total == (7,11):
                yesOrno == str(input('You won! Would you like to play again?'))
                yesOrno = yesOrno[0].lower()

            else:
                first_roll == total

                while yesOrno == 'y':
                    throw_1 = random.randint(1,6)
                    throw_2 = random.randint(1,6)
                    finalRoll = throw_1 + throw_2
                    
                    print('You rolled a',total)

                    if total == 2 or 3 or 7 or 11 or 12:
                        yesOrno = str(input('You lost! Would you like to play again?'))
                        yesOrno = yesOrno[0].lower()
                        break

                    elif total == first_roll:
                        yesOrno = str(input('You won! Would you like to play again?'))
                        yesOrno = yesOrno[0].lower()
                        break

                    else:
                        yesOrno == 'y'

        print('Thanks for playing!')

    play()
             

<!-- end snippet -->

