Question: 2a What is the output of the following python code? (5 points) grade = 80 def printgrade(): grade = 90 print(grade:, grade) printgrade() print(grade:,

 2a What is the output of the following python code? (5 points)  

2a What is the output of the following python code? (5 points) grade = 80 def printgrade(): grade = 90 print("grade:", grade) printgrade() print("grade:", grade)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The Program Output grade 90 grade 80 Explanation 1 Any variable created outside of any functio... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!