Answered step by step
Verified Expert Solution
Link Copied!
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
image text in transcribed
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

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Strategic Database Technology Management For The Year 2000

Authors: Alan Simon

1st Edition

155860264X, 978-1558602649

More Books

Students explore these related Databases questions

Question

1. Define the nature of interviews

Answered: 3 weeks ago

Question

2. Outline the different types of interviews

Answered: 3 weeks ago