Today when I tryed to run a simple code on Sublime Text 3, the following message appeard:
Python was not found but can be installed from the Microsoft
If python is already installed, then go to Apps & features from settings, select Python, then select modify. Again select modify and select next
Select next, then this window will appear select add python to environment variable
and click on the install button. then again go to apps & features, click modify and then click repair. Now go to CMD and type python. problem solved.