Python Forum
simple task in python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
simple task in python
#1
Write a program that takes input of 8 numbers from the keyboard, and adds them to a list. The screen displays their sum, the maximum and minimum of them.
Sort the given list and display it
You can throw the code in any convenient way, thanks
Reply
#2
(Nov-22-2021, 06:15 PM)Rapito Wrote: Write a program that takes input of 8 numbers from the keyboard, and adds them to a list. The screen displays their sum, the maximum and minimum of them.
Sort the given list and display it
You can throw the code in any convenient way, thanks

Hi,

Everyone would like to know .... what do you have so far? What piece of code do you need help with? Your query sounds simple enough.
Reply
#3
(Nov-22-2021, 06:22 PM)ghoul Wrote:
(Nov-22-2021, 06:15 PM)Rapito Wrote: Write a program that takes input of 8 numbers from the keyboard, and adds them to a list. The screen displays their sum, the maximum and minimum of them.
Sort the given list and display it
You can throw the code in any convenient way, thanks

Hi,

Everyone would like to know .... what do you have so far? What piece of code do you need help with? Your query sounds simple enough.
everything is as I wrote, this is homework, but I just started learning python and do not understand how to solve
Reply
#4
Nobody will offer any help until you make a best effort attempt to solve the problem and post the code you wrote. If you do nothing you get nothing in return. Those are the rules.
buran and ndc85430 like this post
Reply
#5
We are not going to do your homework for you - if you don't learn these basics you will be completely lost within a week or 2 of your course.
So, take the instructions and write the code for each part.
How do you input 8 numbers? Remember you need to save all of them for the next steps.

How do you find the minimum of the 8 numbers? and then display it?
Same with the maximum?

How do you sort your list of 8 numbers (and I use the term "list" specifically)
ndc85430 and buran like this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  simple task with lists... Maxwell123 3 2,393 Jun-27-2020, 01:00 PM
Last Post: GOTO10
  small newbie task to python intoxicated_dk 2 2,368 Jun-17-2019, 01:57 PM
Last Post: intoxicated_dk
  Fun Task: Python 3.7.2 CozyDarkness 1 2,043 May-10-2019, 07:12 AM
Last Post: buran
  file python task, need help ! rayabv 7 3,495 Apr-15-2019, 10:07 PM
Last Post: Yoriz
  School python program task help TommyLee 3 4,021 Apr-17-2018, 04:44 AM
Last Post: tannishpage

Forum Jump:

User Panel Messages

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