Given the following code block in a file called cool.py
:
cool_value = 'SkillMagic'
def set_cool_value(new_cool_value):
cool_value = new_cool_value
print(cool_value)
def get_cool_value():
print(cool_value)
Suppose you ran the following code in your Python console:
from cool import set_cool_value, get_cool_value
set_cool_value('UnskilledScience')
get_cool_value()
What would you see printed on the console?
SkillMagic
, then UnskilledScience
UnskilledScience
, then UnskilledScience
SkillMagic
, then SkillMagic
UnskilledScience
, then SkillMagic