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

How did the allies defeat Germany and Europe?
What may occur when a healthcare system limits the range of services it offers?
according to census 2000 what happened to the Asian population in the United States between 1990 and 2000?A) it increasedB) it decreased C) It remained the same
What is the leader of the political party who has the least members in the house/senate called
Which of the following values have 3 significant figures ? 85.3,36.05,50,121
Which of the following BEST describes the kinetochore? the array of vesicles that will form between two dividingnuclei and give rise to the metaphase plate a st
Which of the following is a difference between Judaism and Christianity?
the perimeter of a rectangle is 30 in. if its lenth is 3 times the width, find the deminsions​
A visitor to a lighthouse wishes to determine the height of the tower. The visitor ties a spool of thread to a small rock to make a simple pendulum, then hangs
A number is divided by 3 and then 5 is subtracted from the quotient the result is 1. Whats the number?