Question: What is the problem with the program below? How would you fix it? def g (y) : global y y = 4 return x*y
What is the problem with the program below? How would you fix it? def g (y) : global y y = 4 return x*y x = 0 res = g(x) print ('x = {}, (0) = {}'. format (x, res))
Step by Step Solution
There are 3 Steps involved in it
Answer The given Python program has several issues Indentation The code snippet seems to be improper... View full answer
Get step-by-step solutions from verified subject matter experts
