In the game of Lucky Sevens, theplayer rolls a pair of dice. If the dots add up to 7, the playerwins $4; otherwise, the player loses $1. Suppose that, to enticethe gullible, a casino tells players that there are many ways towin: (1, 6), (2, 5), and soon. A little mathematical analysisreveals that there are not enough ways to win to make the gameworthwhile; however, because many people's eyes glaze over at thefirst mention of mathematics “wins $4â€.
     Yourchallenge is to write a program that demonstrates the futility ofplaying the game. Your Python program should take as input theamount of money that the player wants to put into the pot, and playthe game until the pot isempty.
           The program should have at leastTWO functions (Input validation and Sum of thedots of user’s two dice). Like the program 1, your code should beuser-friendly and able to handle all possible user input. The gameshould be able to allow a user to ply as many times as she/hewants.
           The program should print a table as following:
     Numberofrolls            Win orLoss               Current value of the pot
                            1                              Put                                  $10
                  2                                         Win                                 $14
                  3                                         Loss                                $11
                            4
                            ##                            Loss                                $0
       You lost your moneyafter ## rolls of play.
       The maximumamount of money in the pot during the playing is$##.
       Do you want to playagain?
     At thatpoint the player’s pot is empty (the Current value of the pot iszero), the program should display the number ofrolls it took to break the player, as well asmaximum amount of money in the pot during theplaying.
       Again, add good commentsto your program.
       Test your program with$5, $10 and $20.