Question: Task 03 (20 points) Write a Python script that will simulate a dice roll. It should prompt for a number of sides and then return

Task 03 (20 points)

Write a Python script that will simulate a dice roll. It should prompt for a number of sides and then return a random number that might be rolled with a die of that number of sides. Assume a standard die that starts at 1 and goes to the given number of sides.

Input string

Expected output of script

Enter number of sides: 4

Enter number of sides: 6

Enter number of sides: 20

Roll: 2

Roll: 4

Roll: 11

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!