Python Forum
Help with array smallest biggest number
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with array smallest biggest number
#1
Hello
I need some help to: User inserts 10 numbers that goes to an array, and then the program prints the smallest number, the biggest number and the average of all 10 numbers.
This is an exercise that will help me understand a few things...thanks for the help.

here is my code so far:

numberlist = [None]*10
highest = 0
lowest = 0
for n in range(10):
    numberlist[n]=int(input("insert a number "+str(n+1)+": "))


print(......)
Reply


Messages In This Thread
Help with array smallest biggest number - by thanikos - Nov-30-2017, 12:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Get the biggest number from a two dimensional list rs74 13 6,374 Aug-09-2020, 04:02 PM
Last Post: deanhystad
  Finding Row Number for Items in 2D array fafzal 2 3,189 Jan-10-2019, 06:11 AM
Last Post: fafzal
  Take the biggest value from array dwiga 9 7,850 Jul-20-2017, 01:28 AM
Last Post: dwiga

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020