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

Michelle is a server in a restaurant. On a weekend night, Michelle earned $4 an hour and $65 in tips She made a total of $93 Write and solve an equation to dete
What is a party caucus? A)a closed meeting between two or more House committees B)a meeting between the majority leader of the House and the majority leader of
EXPLAIN HOW METAMORPHISM CAN ALTER A ROCK CHEMICALLY AS OPPOSED TO MINEROLOGICALLLY.
Nine times ten to the negative eleventh power over two point four times ten to the eighth power
Explain how complement generally prevents microbes from causing disease.
What resistance is needed in series with a 10-uF capacitor at1.0kHz for a total impedance of 45 Ohm?
Parietal cells secrete A) enteropeptidase. B) gastrin. C) hydrochloric acid. D) mucus. E) pepsinogen.
Simplify the following expression. 4 ( 20 + 12 ) ÷ ( 5 − 3 )
Find m2ABC.(2x)=(5x+5)OPTIONS256050130​
Two charges q1 and q2 have a total charge of 10 mu or micro CC. When they are separated by 4.1 m, the force exerted by one charge on the other has a magnitude o