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

A store is having a sale to celebrate president day. Every item in the store is advertised as one fifth off the original price of $140, what was it's original p
what does πr² mean and how do I solve it
The receptive surface for pollen on an angiosperm flower is the (A) anther (B) corolla (C) ovary (D) style (E) stigma
a chemical spill has just killed off all the algae in a part of the open ocean. how will this affect the food webs  in that part?
who is the aztec king
how do I factor this polynomial? q^2-121
Simplify the expression. 11c + 3(-5c + 4d)
An equilateral triangle has a perimeter of 18cm. What is the length of one of its sides?
how did english culture influence chaucer?
why do ecologist make models?