Write a program that asks the user to enter a series of 20 numbers. Store the numbers in a list and display the lowest, highest, total, and average of the numbers. Plus display enter a series of 20 numberes, find the lowest, highest, total, and average of the numbers in the list. Exit
rebekah.stacy1 0 Newbie Poster
Recommended Answers
Jump to PostPython3
nums=[(int(input("Give me the number numero {}: ".format(i+1)))) for i in range(20)] print("Lowest: {}\nHighest: {}\nTotal: {}\nAverage: {}".format(min(nums),max(nums),sum(nums),sum(nums)/len(nums)))
I hope that makes you smarter.
Jump to PostFinding the lowest, highest, total, and average of the numbers in a list is easy as slate already mentioned. To develop a user friendly way to enter 20 numbers into a list is your challenge.
All 6 Replies
Gribouillis 1,391 Programming Explorer Team Colleague
TrustyTony 888 ex-Moderator Team Colleague Featured Poster
slate 241 Posting Whiz in Training
HiHe 174 Junior Poster
rebekah.stacy1 0 Newbie Poster
vegaseat 1,735 DaniWeb's Hypocrite Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.