Inside the block
if __name__ == "__main__": do I need to declare a variable as global in order to set its value?
Or... is this block not a function and hence I don't need to do this?
I guess the latter is true but I want to double-check and make sure I understand this better.
if __name__ == "__main__":, it is the sameifconstruct asif True:with respect to scope. It is definitely not a functionifblock does not have its own context. Does not matter what it's used for.