First install python and notepadd++ to your system and open cmd,type python to check if the path is installed in your system to add path go to This pc right click go to properties and in uppermost side of left corner at bottom you can see advanced system settings and then click it click environmental variables
create new path variable with value of your python location
for python 3.4
C:\Python34;C:\Python34\Scripts;
for python 3.6
C:\Users\johnwick\AppData\Local\Programs\Python\Python36\Scripts\;C:\Users\johnwick\AppData\Local\Programs\Python\Python36\;
if path variable already presented append it by semicolon +new path
then open notepad++ and enter some code
python -i "$(FULL_CURRENT_PATH)"
and then it gives prompt add code enter any for eg ctrl+F10
and run code
output:
monty
then open notepad++ and enter some code
f5-to run program ,it asks which program to run add code
python -i "$(FULL_CURRENT_PATH)"
and then it gives prompt add code enter any for eg ctrl+F10
and run code
output:
monty
No comments:
Post a Comment