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

Which reaction best explains why carbon is able to from macromolecules ? Carbon is a very large element Carbon can bond with many elements Carbone is found in
Management is the process of working with others to effectively achieve an organizational objective by
what is the answer ;_;
what is the largest whole number that divides exactly into 12 and 16
This is the question
Which of the following animals studied by Darwin on the Galapagos Islands eventually inherited his name? Darwin's Giant Tortoises Darwin's Finches Darwin's S
write the canonical equation of the straight line 2x+3y-2z+6=0, x-3y+z+3=0
Which of the following is an example of a DEPENDENT (subordinate) clause? I like hotdogs the little baby cries all night until the sun goes down the
A student answered 86 problems on a test correctly and received a grade 98%. How many problems were on the test, if all the problems were worth the same number
Please help me! I really need it.