A classic beginner problem to solve.... simulate rolling some dice.
This little program allows you to choose the numer of sides on the dice and the number of dice to roll.
There's nothing really tricky about this program. The rolling and display of the results has been compressed down to a single line of code:
A list comprehension is used to generate the list of dice results, combined into a single string and then output in the window.