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,
4 months ago
Social Sciences,
4 months ago
Science,
4 months ago
Computer Science,
7 months ago
Math,
7 months ago
Computer Science,
10 months ago
Computer Science,
10 months ago