reorganize

How can I organize my code so that it's neater?

How can I organize my code so that it's neater? Question: from subprocess import call command = input(‘: ‘) if command == ‘1’: call(‘notepad.exe’) elif command == ‘2’: call(‘calc.exe’) else: print(‘command not found’) I have similar code except it’s a lot more if statements. Main objective here is to make it take up less space …

Total answers: 1