rotisseriestylechick rotisseriestylechick
  • 15-03-2021
  • Computers and Technology
contestada

A python program that asks the user for four numbers and prints out the first and last number. It must have an array used in it.

Respuesta :

tonb
tonb tonb
  • 15-03-2021

Answer:

numbers = []

for i in range(4):

 z = int(input("enter a number: "))

 numbers.append(z)

print("First is {} and last is {}".format(numbers[0], numbers[-1]))

Explanation:

Now I understand your other question as well! ;-)

Answer Link

Otras preguntas

A good plot gives a novel _____. characters setting sense of order
How did the beliefs of the Israelites differ from those of other people of Mesopotamia?
The chemical formula for a molecule that contains two chlorine (Cl) atoms is ___________. a. Cl2 c. KCl b. NaCl d. CaCO2
find the missing number in the following pattern 12,24,72,288
1.How does inertia affect a person who is not wearing a seatbelt during a collision?
50 is 20% of what number
One would use deductive reasoning to A. prove a hypothesis. B. categorize objects. C. organize ideas. D. formulate a plan.
Why is euthanasia such a controversial issue?
Leadership of which person was key to the North’s victory in the Civil War? Lee Lincoln Seward Stowe Sumner.
True/False: The Northern Hemisphere experiences winter when Earth is farthest from the sun.