Beyond Knowing
Ed Tools
Play Quiz
Sign in
Join Sookshmas
Beyond Knowing
Jobs
Ed-Tools
Play Quiz
Shobha v
Wall
Questions
e-Notes
Calculations
MCQs
News/Article
what is the output of the following code?
def spam():
global eggs
eggs='spam'
def bacon():
eggs='bacon'
def ham():
print(eggs)
eggs = 42
spam()
print(eggs))
Python 3
Engineering-CS
GAT Bengaluru
Posted on
by
Score
Share
Views
Comment(s)
Please
Login
to post your comment or reply to comment
Recent Question Comments
Recent Questions
Top Scored Questions
Scroll
×
Login to India's fastest growing social media for Self-Learners!
Sign in with Google
OR
Not registered?
Create an account
Forgot Password?
×
Join India's fastest growing social media network for learning and education!
Sign in with Google
OR
Already a registered user?
Login