First after all I'm a total newbie on Python. I'm trying to make a Python file with two methods like this:
def hello():
print("Hello.")
def bye():
print("Bye bye.")
I know an option that works with just one method.
if __name__ == "__main__":
hello()
This will let open the file from CMD, using this command:
>python file.py
Again, it will open the file but deploying hello(), I need something to let the user pick hello() or bye() method. On internet I saw that the following CMD command
>python file.py hello()
>python file.py bye()
somehow works, but I don't know how, do someone knows?
Greetings!