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

what are 3 geographic regions hernando de soto explored marching through georgia
Is Shoreline at the beach is changing -5 centimeters each year due to wind and water erosion what is the change in the shoreline of the next seven years
is it true that transition words are used in a narrative​
f(3) = 6x Help if you can?!
Japan North Korea and the Philippines each have a consitution what role does each countrys consitiution play ion organzing power in the government and shaping t
the adjective for the word attract
what details from a story best help develop the theme ​
During 2018, Towson Company had credit sales of $54,000 and cash sales of $14,000. In 2018 Towson collected $31,000 of accounts receivable resulting from sales
decide if the following sentence is grammatically correct or incorrect. Yo compli con mi promesa.
Name 10 facts you learned about the elements of art