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 is the Latin infinitive for the verb “to give”
what is the slope of the line?
The English public, now consuming some eighteen pounds of sugar a year, knew little about the lives of the enslaved Africans whose labor sweetened their meals.
ayudenme porfavor no se como hacerlo
Type the correct answer in the box. Use numerals instead of words. If necessary, use / for the fraction bar. If f(X)=25-x^2 and g(X)=x+5, what is (f/g)(x)? Writ
45.3 × 2.34 equal to
What is the value for y? Enter your answer in the box.
How can you use a 2s and a 1s fact to find 3x8?
What is the square root of 3
Whoever's first gets brainliest answer!!! Evaluate the expression when x = 12 and y = 2. x/3y a. 38 b. 2 c. 125 d. 8