Python Forum
simple task in python - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: simple task in python (/thread-35613.html)



simple task in python - Rapito - Nov-22-2021

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


RE: simple task in python - ghoul - Nov-22-2021

(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.


RE: simple task in python - Rapito - Nov-22-2021

(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


RE: simple task in python - deanhystad - Nov-22-2021

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.


RE: simple task in python - jefsummers - Nov-22-2021

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)