Why does this function output 0 1?
Why is a class in a function behaving like a function? Why didn't I have to call A like a function?
How does the assignment statement after print() affect the values of x and y? When I assign value to x, x becomes 0 and if I assign a value to y, y becomes 0.
x = 0
y = 0
def f():
x = 1
y = 1
class A:
print(x,y)
x = 99
f()