What is the output of the following Python code? def - ProProfs Discuss
Cancel
TopicsDown
Products Down
Follow Us:
FacebookTwitter
Advertisement

What is the output of the following Python code? def change_param(x):x = 'Goodbye'return xx = 'Hello'print xx = change_param(x)print x 



A. HelloHello
B. HelloGoodbye
C. GoodbyeGoodbye
D. GoodbyeHello
E. None of the above

This question is part of Comp150 Python Exam 2009
Asked by Zilch, Last updated: Sep 16, 2020

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

zilch

zilch

zilch
Zilch

Answered Nov 09, 2017

Hello Goodbye

>>> Hello Goodbye >>>
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.