Question: Write a function named buildList that builds a list by appending a given number of random integers from 1 0 0 to 1 9 9

Write a function named buildList that builds a list by appending a given number of random integers from 100 to 199 inclusive. It should accept two parameters the first parameter is the list, and the second is an integer for how many random values to add, which should be input by the user.
Print the list after calling buildList. Sort the list and then print it again.
Sample Run
How many values to add to the list:
10
[141,119,122,198,187,120,134,193,112,146]
[112,119,120,122,134,141,146,187,193,198]

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 Programming Questions!