Hacker News new | ask | show | jobs
by dmritard96 4157 days ago
In python it is still a function but it is also an object?
2 comments

Well more properly python doesn't have a "main" function. You just directly execute the initial script, which will import other modules, define functions and classes, etc, and finally (hopefully) execute something.
In C# main() is a method attached to the main Program class.