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
How do I change the keyboard light colors on Alienware 17 R5?
aleksandrvk [35]

Answer:

5 Launch the Alienware Control Center Press FN + F4 Launches the Alienware Control Center and opens the Theme Manager tab. Keyboard- backlight adjustment Press FN + F5 Press FN + F6 FN + F5 decreases the keyboard-backlight intensity. FN + F6 increases the keyboard-backlight intensity.

Explanation:

Nice Durango

3 0
3 years ago
in the client server model, what is the primary protocol used for communication between a browser and Web server
worty [1.4K]
Assuming the client is using a web browser, your answer would most likely be the Hyper-Text Transfer Protocol (HTTP).

HTTP is a very, very common way of transfering insensitive data from client to server. HTTPS is more secure, adding a secure socket layer to protect communications from being intercepted.

--

As an alternative answer, the FTP (File Transfer Protocol) may be an acceptable answer, but this is usually not the primary method of communication for clients, as it is mainly used to access and modify files on the server, requiring a username-password combo to do so (usually).


7 0
3 years ago
Write a java program as follows Write a method called powOfTwo that takes an integer as parameter, computes, and outputs it’s sq
Kisachek [45]

Answer:

public static int powOfTwo(int input) {

 return input*input;

}

You will have to call this method in main
for printing it, write

System.out.println(powOfTwo(your number));

in public static void main(str[]args) {

}

8 0
2 years ago
After assembling a computer system the very first software to be installed is​
tatyana61 [14]

Answer:

operating system is the very first

after assembling a computer system the very first software to be installed is

8 0
3 years ago
Read 2 more answers
The race car driver nicknamed Neiblemeister - master of the mist, was married to what famous female aviator?
user100 [1]
<h2>ANSWER: ELLY BEINHORN</h2>

The race car driver Neiblemeister- master of the mist, was married to <em>Elly Beinhorn</em> who was a famous female aviator. In 1936 Beinhorn married the well-known racecar driver Bernd Rosemeyer, who died in a car accident years later, only ten weeks after the birth of their son Bernd. She remarried in 1941 and within a year gave birth to a much-longed-for daughter, whom she named Stephanie.

7 0
3 years ago
Read 2 more answers
Other questions:
  • What is a many-to many types of correspondence?
    5·1 answer
  • Who want to be my friend
    7·2 answers
  • Which of the following does NOT describe a node?
    10·2 answers
  • Which type of memory helps in reading as well as writing data? With the help of , a computer can read as well as write or modify
    11·3 answers
  • Omar is preparing to deliver a presentation to his class. It is about a program to collect samples from an asteroid that has bee
    13·1 answer
  • Quiero borrar mi cuenta como le hago ?
    6·1 answer
  • At Moore High, 456 students attended the prom. This is 65 more students than
    13·2 answers
  • Firestick optimizing system storage and applications
    14·1 answer
  • Which of the following commands can be used to display socket information out to the terminal screen
    12·1 answer
  • Which of the mis systems uses both informal and formal information-gathering procedures?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!