Question: In a program, write a function named roll that accepts an integer argument number_ of_throws. The function should generate and return a sorted list of
In a program, write a function named roll that accepts an integer argument number_ of_throws. The function should generate and return a sorted list of number_of_throws random numbers between 1 and 6. The program should prompt the user to enter a positive integer that is sent to the function, and then print the returned list.
Step by Step Solution
3.51 Rating (151 Votes )
There are 3 Steps involved in it
import random def rollnumberofthrows Generates and returns a sorted list of numberoft... View full answer
Get step-by-step solutions from verified subject matter experts
