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
Alborosie
3 years ago
13

Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integer

s that follow. Then, get the last value from the input, and output all integers less than or equal to that value.
Computers and Technology
1 answer:
SIZIF [17.4K]3 years ago
6 0

lst = input().split()

lst.pop(0)

w = lst[-1]

lst.pop(-1)

newlst = [int(x) for x in lst if int(x) <= int(w)]

print(newlst)

This works for me. Best of luck.

You might be interested in
True/False? In association rule learning, the following two rules will always have the same support value.
LenKa [72]
I’m pretty sure is false as well because of the first person has told u <3
4 0
3 years ago
Electrical sign connect mainly to​
quester [9]
What subject are u on?
8 0
3 years ago
1.Which one of the following buttons returns a window to its original size?
Ber [7]

Answer:

1. D

2.C

3. D

4. A

5. B

6.B

7.B or D

8.C

Explanation:

Not 100% sure about 3,4, 8

7 0
3 years ago
What is the function of the command prompt?
yan [13]
The answer is B cause you use it to make commands
6 0
3 years ago
Which are elements involved in diagramming a solution? Choose all that apply.
katovenus [111]

Answer:

1) showing a visual graphic of the solution

3) showing the flow of information through the solution

4) showing decision points

5) showing the path of information to decision points

Explanation:

 I'm sure this is the answer!!

4 0
3 years ago
Other questions:
  • Which Internet appliance can take action to potentially stop a network attack from taking place?
    6·1 answer
  • What is an efficiency target? Give an example of setting an efficiency target
    11·1 answer
  • Which option allows you to add different effects for each of the bulleted items on your slide
    13·1 answer
  • Which of the following subjects is considered technical education
    11·1 answer
  • You can change the color of the value of a cell or the background color of the cell but not both.
    5·2 answers
  • _____ are networks that learn and are capable of performing tasks that are difficult with conventional computers.
    11·1 answer
  • When a person or organization uses the services of another professional, that person or organization is called the _______
    15·1 answer
  • What will you see on the next line?
    6·2 answers
  • Describing Report Viewing
    5·1 answer
  • What network security tool, usually included with Kali Linux, allows a user to ping multiple IP addresses
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!