Question
F.1) Rewrite the grade program from the previous chapter using a function called computegrade that takes a score as its parameter and returns a grade
F.1) Rewrite the grade program from the previous chapter using a function called computegrade that takes a score as its parameter and returns a grade as a string. Sample output follows below.
Sample output:
Enter score: 0.95 A
Enter score: perfect Bad score
Enter score: 10.0 Bad score
Enter score: 0.75 C
Enter score: 0.5 F
F.2) Write a function which reads in a csv as a list of lists, properly converting int data to ints and floating point data to floating points as needed. Afterward, have the function print the list of lists out using pretty print, to show off the results.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started