HW2c: if Statements, Lists, and for Loops - PYTHON Coding
Using Python, write a program, hw2c.py, that meets the following requirements:
1. Allows the entry of a student's name.
2. Allows the user to enter the number of grades.
3. Allows the user to enter that (see #2) number of grades.
4. Stores these grades in a list.
5. Calculates the average of the entered grades.
6. Assigns the letter grade to the calculated average (use standard grade assignments such as 90-100 is an A, 80-89 is a B, and so on).
7. Outputs the following (see sample output):
- Student's name
- A list of the grades entered
- Assignment average
- Letter grade
Sample Output:
Tyrone, the 3 grades you entered are below:
- Grade 1: 97
- Grade 2: 85.5
- Grade 3: 79
The average is 87.2% or a "B"
Comment the hw2c.py code given the software requirements. Be sure to use the commenting style - comment each line of code identifying what step it is and defining/explaining what it is doing or its purpose.