Python Forum
Coding answer for newbie
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Coding answer for newbie
#1
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
Yoriz write Aug-05-2023, 12:47 PM:
Moved to homework:
https://python-forum.io/misc.php?action=help&hid=52 Wrote:Homework and No Effort Questions
This forum is focused on education. It exists to help people learn Python. We don’t exist to solve others' problems.
Reply
#2
Kindly share your attempt at solving this problem.
Reply
#3
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Answer for newbie, Sqlite3 Froger 2 862 Sep-27-2023, 05:33 PM
Last Post: noisefloor
  What am I doing wrong to not get the answer pav1983 7 3,724 Jun-25-2020, 08:53 PM
Last Post: ndc85430
  Need help with an assignment, not an answer. celtickodiak 4 2,949 Oct-01-2019, 02:04 PM
Last Post: jefsummers

Forum Jump:

User Panel Messages

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