def grade_manipulation(grade_list):     '''     Question     You are working as a TA and the professor asks you to handle the     uncleaned student grades.     - First, substitute all grades that are None with a 0     - Second, reverse the order of the student grades     - Third, change the type of the list to a tuple     Args:         grade_list (list)     Returns:         tuple     >>> grade_manipulation([67, 95, 60, None, 100])         (100, 0, 60, 95, 67)     ''"     # print(grade_manipulation([67, 95, 60, None, 100]))     # print('---

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.5: Case Studies
Problem 3E
icon
Related questions
Question

def grade_manipulation(grade_list):
    '''
    Question
    You are working as a TA and the professor asks you to handle the
    uncleaned student grades.

    - First, substitute all grades that are None with a 0
    - Second, reverse the order of the student grades
    - Third, change the type of the list to a tuple

    Args:
        grade_list (list)
    Returns:
        tuple

    >>> grade_manipulation([67, 95, 60, None, 100])
        (100, 0, 60, 95, 67)

    ''"
    # print(grade_manipulation([67, 95, 60, None, 100]))
    # print('---')

Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Operations of Linked List
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr