Computer Science, asked by pankajkumar7812, 7 months ago

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 beingSaRcAsTiC
2
\huge{\fbox{\fbox{\bigstar{\mathfrak{\green{Answer::}}}}}}

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