Question: 1. What will the following code print (assume the function definition, function calland print statement are at the first indentation level, and the function body
1. What will the following code print (assume the function definition, function calland print statement are at the first indentation level, and the function body is at the second indentation level? def my_function0: x=10 print (x) my_function0 print(x) 10 Nothing will print 1010 10 will print, then an error will occur because x is not in the giobal scope
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
