What will be the output of the following code :- i=5
def checkGlobal():
global i
i=i+10
print(i)
checkGlobal()
10
5
15
None of the above
Share
What will be the output of the following code :- i=5
def checkGlobal():
global i
i=i+10
print(i)
checkGlobal()
10
5
15
None of the above
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
15
Explanation:
you have to put I=5
I=I+10
5=5+10
5=15
[tex]\huge{\fbox{\fbox{\bigstar{\mathfrak{\blue{Answer::}}}}}}[/tex]
i= 5
i = 5 + 10
i = 15
therefore...Option.C
HOPE IT HELP$...!!!
@being_SaRcAsTiC