jskfan
asked on
Class and method: main() in python
Class and method: main() in python
I have seen examples in python where they use class main() or method main(). I wonder if it has the same meaning as in Java, where the main method gets executed first, or it is just a name that can be different than main() ?
Thank you
I have seen examples in python where they use class main() or method main(). I wonder if it has the same meaning as in Java, where the main method gets executed first, or it is just a name that can be different than main() ?
Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
after reading online,
it says __init__(self) will be executed without calling the function from within the code.
I got this one
it says __init__(self) will be executed without calling the function from within the code.
I got this one
ASKER
Thank you
ASKER
Python has __init__(self)
I wonder if the word init can be changed , for instance:
__Test__(self)