I am vrey new to python and have to work with a given code (not my implementation), with very limited accesses (no debugger, screen prints and such).
Assuming I have the following class:
class foo ():
    def __init__(self, u, v):
        #some flow
def main():
    #some flow
    x=1
    return x
main() and foo() are in the same "file.py" file. are they connected?
and I instantiate it in the following way:
import file as A
MyFoo=A.main()
In oppose to:
MyFoo=foo()
- Did I call upon the __init__function?
- If so how? I see no point where it is stimulated.
- If it was indeed called (and here lies the big questions) how do I assert values for u&v?
I have tried an online compiler and still didn't manage, changing u & v values. I also read this to try and understand instantiation process in python.
 
     
    