Here is what i do. I am creating a command-line like application.
it runs forever till its breaked. So i type
command = input()
and then i check it with if statements.
if x is 'PrintDate':
That Doesnt work it always go to else section and prints 'Else'