Say I had two functions, one belonging to another like so.
def foo():
def bar():
print("im bar")
print("im foo and can call bar")
print("i can call foo, but not bar?")
How would refer to or call bar?
Would I do foo.bar()?
If bar were not a function like if bar = 1 then how would I access that?
I'm aware I could move bar out of foo but is there any other way?