0

What it compares !!Help me wizards

Global and locals

17th Dec 2020, 4:11 PM
Ajith
Ajith - avatar
5 Answers
0
def foo(): print(globals()==locals()) foo() print(globals()==locals())
17th Dec 2020, 4:13 PM
Ajith
Ajith - avatar
0
Output is False True
17th Dec 2020, 4:13 PM
Ajith
Ajith - avatar
0
Am not getting it slick
17th Dec 2020, 5:29 PM
Ajith
Ajith - avatar
0
My bad, i added no explination. check the comments, i replied to coding kitty with one when asked
17th Dec 2020, 5:33 PM
Slick
Slick - avatar