Python beginner looking for feedback on simple dice game
I'm pretty new as well, but I like to create an exception whenever I try to convert user input to an integer. Something like this-
while True:
    try:
        number_of_dices = int(input(&quot;How many dices would you like to roll?&quot;
                                    &quot; (0 to quit) &gt;&quot;))
    except ValueError:
        print(&quot;Please enter a number.&quot;)