let's assume that I have two python scripts. One of them is like:
def sum(x,y):
return x+y
def main():
sum()
if __name__ = '__main__':
main()
The other ones:
def sum(x+y):
return x+y
if __name__ == '__main__'':
sum()
What is the difference between two option? Or is there any difference between write main method and then if statement and writing just if statement? If you explain it, I will be grateful. Thank you so much for your answers and time.