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 square root of 325
Can someone help me please
Calculate the conductance of a conduit the cross-sectional area of which is 3.0 cm2 and the length of which is 9.0 cm, given that its conductivity is 0.80 ohm-1
What value of x will make this proportion true? 14/x = 1/2
What is the square root of 325
What Is Aramaic? could you help me out
How do you get the answer 3a -5 from: -3a - (5-6a)?
Given: Q1 = 3.0 × 10-5 C Q2 = 4.0 × 10-5 C K = 9.00 × 109 N × r = 3.0 m, determine F. _____ N
could you help me out What Is Yiddish?
Help me find the equation for the dimensions of a window, please!