Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started