Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python
#1
Problem Statement: Calculate the Average of Numbers

Write a Python program that:

Asks the user to enter five numbers.
Stores these numbers in a list.
Calculates the average of the numbers.
Prints the average.
Sample Input:

mathematica
Copy code
Enter number 1: 10
Enter number 2: 20
Enter number 3: 30
Enter number 4: 40
Enter number 5: 50
Expected Output:

csharp
Copy code
The average is: 30.0
Cool
Reply
#2
This is not going to work like that.... If you want help with your homework assignment, you will need to put some effort, show us what have you tried and what specific problem with your code you need help with
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Forum Jump:

User Panel Messages

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