I am fairly new to programming, and at the moment am creating a program with many different functions. At the moment, the user has to type in a command, such as 'time', or 'help', without the function brackets. I would like it to stay that way.
But my code for this is very inefficient:
x=input()
if x=='time':
time()
elif x=='date':
date()
At the moment it seems short, but I plan to have many functions. Is there a way to make a loop which does all of this?