Python coding, please include comments for the coding. Can someone fix my code
Problem 1: Roll the Dice In games with two dice (such as Monopoly), rolling two 6-sided dice and getting the same side of number on both dice is called "doubles" tie the first die rolls the same time). One special type of "doubles roll is called "snake eyes, which is rolling two l's at the same time and the second die rolls a 5 at For this assignment you will be writing a program which first prompts the user for the number of sides to the dice they will be rolling Your user should be able to input any positive value greater than or equal to 3 for the # of the sides on their dice, and you can assume that they will enter integer (not floals or strings. You will need to validate their input before you contine (.. entering -10 should cause your program to tell the user that their input is valid). You should reprompt the user to enter a value if they supply bad data Hit 'while loop to keep the user trapped until they supply you with "good" data. S edice Next, your program should keep rolling the dice until it snake eyes. This means that you will rollo visual dice of the specified at a time. The program should announce very rolled and then tell the user how many rolls were required to get a pair of one. You should also keep track of how many times you roll came up with doubles along the way you would end the program until you roll snake eyes") In addition, you will want to calculate the average roll for cach die and present this information to the user See the sample program below to see what this should look like. You should formats number to two decimal places Sample inputs How many sides on your dice? -10 Sorry. that'not a valid site value. Please enter a site of at least 3. 1. die nr 1 is and die number 2 i 3. 2. die number i 2 and die numer 2 is 2. 3. die number is land die sub 2 la 5. The loop concies will 161 You got Snake eyes! Finally on try s e Along the way you rolled doubles times The average roll for deel 2.95 pe roll for die *** Note that the "snake eyes roll that causes your loop to end should still count as a double rol # checking if the user entered number is valided great or equal to three userenternumber - int(input("How many sides on your dice?")) if userenternumber > 3: print("Thanks! Here we go...") else: while userenternumber = 3: print("Thanks! Here we go...") 2 #rolling the dice al import random min - 1 max - userenternumber def rollingdice1(): dicel - random.randint(min, max) return dicel def rollingdice20: dice2 - random.randint(min, max) return dice2 se rolltimes-1 def rollingcheckfunction(: roll_again-True dicel = rollingdice1 dice2 - rollingdice2 if dicel !- dice2: 23 while roll_again -- False: rollingdice1 rollingdice2 print("die number 1 1s",dice1, "and die number 2 1s", dice2) roll_again - rollingcheckfunction rolltimes-rolltimes+1 else: print("die number 1 is",dice1, "and die number 2 is", dice2) print("You got snake eyes! Finally! On try number 16!") print("Along the way you rolled doubles".rolltimes, "times) rollingcheckfunction Z