See, first of all, the sublime text does not work with input(). You cannot work with that in sublime text. However, you can get nearby it by working with SublimeREPL.
It will help you to execute the interpreter in multiple statements.
To install that module, you just have to install the package control. This lets you easily install plugins. For installing,
- Go to the Sublime text, there press ctrl + shift + P (Linux command in ST for 'goto anything').
- There write 'install',
- Then, select the 'sublime package control: install package'.
- From that select the SublimeREPL. It will install it automatically.
- For using that, simply go to Tools>sublimerepl>python from the menus.
If you want to know more about Python basics then do refer to the below Python tutorial that will help you out in a better way: