Question: Python Coding Problem ###################################### Q5 ############################### # Write a function to print out a grade record for a single class. # The return statement for
Python Coding Problem
###################################### Q5 ###############################
# Write a function to print out a grade record for a single class.
# The return statement for such functions should be None or just blank
# while during the function call, it will display the print.
course = { "class":"IntroDS", "id":"DATS 6101", "semester":"spring", "year":2018, "grade":'B-', "credits":3 }
def printCourseRecord(course):
# write an appropriate and helpful docstring
# use a single print() statement to print out a line of info as shown here
# 2018 spring - DATS 6101 : Intro to DS (3 credits) B- Grade point credits: 8.10
# ?????? fill in your codes here
return # or return None
# Try:
printCourseRecord(course)
# What is the input (function argument) data type for printCourseRecord?
# What is the output (function return) data type for printCourseRecord(course) ?

##################### Q5 ############################### # Write a function to print out a grade record for a single class. # The return statement for such functions should be None or just blank # while during the function call, it will display the print. course = { "class":"Introds", "id": "DATS 6101", "semester":"spring", "year":2018, "grade" : 'B-", "credits":3 } def printCourseRecord (course): # write an appropriate and helpful docstring # use a single print() statement to print out a line of info as shown here # 2018 spring - DATS 6101 : Intro to DS (3 credits) B- Grade point credits: 8.10 # ?????? fill in your codes here return # or return None # Try: printCourseRecord (course) # What is the input (function argument) data type for printCourseRecord? # What is the output (function return) data type for printCourseRecord (course)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
