1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
vlada-n [284]
3 years ago
7

5.19 LAB: Output values in a list below a user defined amount

Computers and Technology
1 answer:
Gala2k [10]3 years ago
4 0

Answer:

The program in Python is as follows:

n = int(input())

myList = []

for i in range(n):

   num = int(input())

   myList.append(num)

threshold = int(input())    

for i in myList:

   if i<= threshold:

       print(i,end=", ")

Explanation:

This gets the number of inputs

n = int(input())

This creates an empty list

myList = []

This iterates through the number of inputs

for i in range(n):

For each iteration, this gets the input

   num = int(input())

And appends the input to the list

   myList.append(num)

This gets the threshold after the loop ends

threshold = int(input())    

This iterates through the list

for i in myList:

Compare every element of the list to the threshold

   if i<= threshold:

Print smaller or equal elements

       print(i,end=", ")

You might be interested in
Prebuilt colors from a document are called
Artemon [7]

Answer:

Theme

Explanation:

Theme. a pre-built set of unified formatting choices including colors, fonts, and effects. Format. to change the appearance of text. Font.

8 0
4 years ago
A computer which links several pcs together in a network is called
Nadusha1986 [10]
Is it called a, "server".
8 0
4 years ago
Will, there be any presents this year
garri49 [273]

Answer:

no why

Explanation:

8 0
3 years ago
Which of the following is a benifit of googling yourself ?
finlep [7]

Answer:

you are protecting yourself from identity theft

6 0
2 years ago
Which evaluation factor will be most important when choosing technology for the company
soldier1979 [14.2K]

Answer and Explanation:

Look for a company's latest updates, see what servers they use, check if they're using the latest technology like containers or AI and look for how flexible they are with regards to change and innovation.

7 0
3 years ago
Other questions:
  • A system of interlinked documents that are available on the internet is
    5·1 answer
  • Which two jobs have high demand need for practitioners( have a skill shortage)
    13·1 answer
  • What is a risk or an effect of software piracy?
    9·2 answers
  • How many electrons are there in an atom of carbon? A. Four B. Eight C. Six D. One
    15·2 answers
  • If you want to adjust the width of a column manually, move your mouse over the _______ column boundary and click and drag until
    9·1 answer
  • Can anyone find any words in here?
    14·2 answers
  • A program in which students learn a specific skill for a particular job is called a
    8·2 answers
  • Given the network 192.168.100.0/24, we are going to segment this network into two subnets, Subnet A and Subnet B. The hosts requ
    10·1 answer
  • How to save an edited document.​
    6·1 answer
  • Spreadsheets will be displayed as tables in presentations. True or False?
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!