Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python help! I'm having trouble formatting mine to look like their example. (With 4 across, 4 across, and then 3 at the bottom) Write a

Python help! I'm having trouble formatting mine to look like their example. (With 4 across, 4 across, and then 3 at the bottom)

image text in transcribed

image text in transcribed

Write a program to build a list of grades, print them out, add to them and count occurrences, and find the amount of the 2-digit grade values. Here are the criteria a) Your program L6QI initials.py" must start with a commented ID Box AND include a comment that indicates the e of the program. EACH of the five functions in your program must state its purpose in comments too The main function in your program must be named: test_grades ).It has been provided for you. Copy this function into your program EXACTLY as written: # Main function - Test all of the helper functions def test_grades ): grade-list create-grades (11) print_rows (grade_list) add grade (grade 1ist) print_rows (grade_list) print ("Amount of 2-digit valuescount_grades (grade_list)) As you can see, test_grades calls FOUR helper functions namely: create grades (amount): Create and return a list of amount randomly selected integers between (and including) 0 and 100 print rows (grade list): ng 4 space separated values in each row. The last Print all of qrade list showi row may have fewer than 4 values in it. add_grade (grade_list): Prompt the user for a grade between (and including) 0 and 100 and append it to grade list. Count how many times the grade occurs in grade_list and print out the result. NOTE: Error checking is not required for this input. count_grades (grade_list): Calculate and return the amount of 2-digit grades in grade_list (ie. grades between 10 and99). Assume grade_list will contain at least one value

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions

Question

1. What are the major sources of stress in your life?

Answered: 1 week ago