Question: use python3 1) Create a function that takes a list of numbers as an input parameter. The function should then ask the user for a

use python3
use python3 1) Create a function that takes a list of numbers

1) Create a function that takes a list of numbers as an input parameter. The function should then ask the user for a single number, then return a list of all the numbers in the original list that are less than the user's number (not sorted; in the same order as the original list). Then, write a broader function that takes no input parameter. The function should generate a list of 10 random numbers between 1 and 100 and then display the list to the user. Then call the above function. Modify the above input prompt to say "Quickly enter a number that will cut the random list in half, from 10 to 5 numbers." Display the new list, and tell the user whether they won or not. (Whether the new list has exactly 5 numbers) FYl for random numbers. Google it, as there are several options, but here is one: import random num 1 = random.randrange (1,100)

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!