Question: Write a function rand _ numbers ( n ) that returns a list of n random integers. Write a function find ( alist , n

Write a function rand_numbers(n) that returns a list of n random integers.
Write a function find(alist, n) that takes a list of numbers and a value and returns true if the value is in the list.
Write the main function which asks the user to enter a number to be used as the value, and another number to be used as the size n of the randomized list. It then prints if the number is in the list (or not in the list) by using the functions defined above.

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