Python Forum
Coding answer for newbie - 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: Coding answer for newbie (/thread-40479.html)



Coding answer for newbie - cg3 - Aug-04-2023

Write a Python program to find out the average of a set of integers. The integers are given to your program as a single input separated by spaces.

Kindly share the answer for above question


RE: Coding answer for newbie - deanhystad - Aug-04-2023

Kindly share your attempt at solving this problem.


RE: Coding answer for newbie - jefsummers - Aug-05-2023

There is another section of this site for homework, and we don't help with "no effort" questions, so we want to see your work.
Given the level of this question, let's assume you have no idea how to start. A good way to get going is to write out the steps you would need to perform the task. Something like:
1. Get the list of integers
2. Find out how many there are
3. Add them up
4. Divide the sum by the number of integers
5. Print the result.

Then, write the code for each step.