Write the definition of a function print Grade, which takes one parameter containing a string value and returns nothing. The function prints "Grade: " followed by the string parameter.

Respuesta :

Answer:

def print_Grade(grade):

print("Grade: ",grade)

Explanation:

The above code segment is a function that takes grade as a string parameter and returns nothing.

The line 1 starts with def keyword.

The keyword is used to start a function and the function will be uniquely identified with it.

The name of the declared function is print_Grade

Variable grade is then declared along with the function.

Line 2 prints "Grade: " without the strings along with the value of grade variable.

The code segment is written in Python

ACCESS MORE
EDU ACCESS
Universidad de Mexico