main function of python code example
Example 1: python main
def main():
print("Hello World!")
if __name__ == "__main__":
main()
Example 2: main in python
if __name__ == "__main__":
def main():
print("Hello World!")
if __name__ == "__main__":
main()
if __name__ == "__main__":