What will be the output of the following code :-
i=5
def checkGlobal():
i=50
global i
i=i+10
print(i)
60
55
10
Error in the code
Answers
Answered by
2
i = 5
but i = 50 (def) (decleared value for this loop)
i = i + 10
i = 50 + 10
i = 60
Therefore....Option A. (60)
HOPE IT HELP$...!!!
@being_SaRcAsTiC
Similar questions
Computer Science,
5 months ago
Social Sciences,
5 months ago
Computer Science,
11 months ago
Math,
11 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago