Open VSCode and From the terminal tab Open New Terminal.
Screen will be appear ass follows.
To create folder and ptyhon file there is 2 way. Graphically and With terminal.
Graphical Example :
To create Folder and python file and open.
1 ) As regular , Create a folder on desktop name as "Python Examples" and create a txt file name as "Example1" with exxtension .py ( Example1.py ) .
2 ) Now to write in that file , Open VSCode Go To File > Open Folder > ( select that Python Example folder ) > Select Folder
3) Open Terminal
Now we can see folder is opened and screen will be appear as follows. File will ready for edit.
With terminal Example :
To create Folder and python file and.
1 ) Open VSCode and Open bash Terminal
2 ) To create folder "Python Examples" on desktop.
Type in terminal cd ~/Desktop and press Enter to change path to Desktop.
Type mkdir Python_Examples and press Enter to create folder.
3) To create python file "Example1.py" in the folder "Python_Examples".
Type touch ~/Desktop/Python_Examples/Example1.py and press Enter.
Cheak graphically Folder and File will be created.
Example : Print a sentence Good Morning Nashik in the terminal.
1 ) Open VSCode and Terminal.
2 ) To create folder "Python_Examples" and file " Example1 ".
3 ) Write following command in the file ans press Ctrl+S to save.
print ( " Good Morning Nashik " )
Screen will be appear ass follows.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyCykjD_HE4ElrcDknpZ6Y-6jTH95v7SmnZVfT5gHyYulQIWz8vXaeItujKGlKoH_CMU5KR9YzHLSFXgVzdWwZZJAW_HfHxQsQohpFc4PM1SPEqi0NHiDnPvtbLKQd9yA3jy-IQ7GpEkA/s1600/vs8.png)
---------------------------------
Use of VSCode
---------------------------------
To create folder and ptyhon file there is 2 way. Graphically and With terminal.
Graphical Example :
To create Folder and python file and open.
1 ) As regular , Create a folder on desktop name as "Python Examples" and create a txt file name as "Example1" with exxtension .py ( Example1.py ) .
2 ) Now to write in that file , Open VSCode Go To File > Open Folder > ( select that Python Example folder ) > Select Folder
3) Open Terminal
Now we can see folder is opened and screen will be appear as follows. File will ready for edit.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHf7ZWDu6cg8PCky2nY7VxvoeJtfbUdzwgoFLrYeBqbabacCbzpaXRMAWQnPWNQ-a52kMw_lZKZiYMZYQaA0JVqkRjajJrBQKavkNl7qdcDqy5vaPZGwvx5owaE-WITsc6oa3gMlAPqqA/s1600/vs10.png)
With terminal Example :
To create Folder and python file and.
1 ) Open VSCode and Open bash Terminal
2 ) To create folder "Python Examples" on desktop.
Type in terminal cd ~/Desktop and press Enter to change path to Desktop.
Type mkdir Python_Examples and press Enter to create folder.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhw42DiuIrnD11E3UrH2LoBz3SaRKa-TldYGUVwxKUpDBHt5oei57AV2i-cx9DE_cxF3C6-x4BEwoA5DriZOH-PrdhZopTZhF0f5npVepAIvSXd2C42Sl80XicnJFQvoA9EWcSMy0VKc0s/s1600/vs13.png)
3) To create python file "Example1.py" in the folder "Python_Examples".
Type touch ~/Desktop/Python_Examples/Example1.py and press Enter.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjn-krcg6lEAVUR3_-chgJ0R5ZOldt2MvnMvZfD-qS9toOkC0BwqFFtBoG6Cepk486F-NVDx6ivX9MmLtviBuIok8WYWctQLsXYQrV3s-Df_1G5s8PBYqq25RAU8V8htaB-hlB35etMtUA/s1600/vs14.png)
Cheak graphically Folder and File will be created.
--------------------------------------------------------
Write and Execute commands
--------------------------------------------------------
--------------------------------------------------------
1 ) Open VSCode and Terminal.
2 ) To create folder "Python_Examples" and file " Example1 ".
3 ) Write following command in the file ans press Ctrl+S to save.
print ( " Good Morning Nashik " )
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2lwLPXi2IPpRCdZ-D_0y1bC-aRPYB0FhYVeO3UCvbLpSziV1b_BaAcUmbTTc7glZajwmm6k-lKAEMl5bUMHljT_NWZJsoNsrjJfDGUOMp1br5XBMByXVpHGEncmqC7Kmx4aDnNAHMXys/s1600/vs11.png)
4 ) For output and Run file. Write following command ( python space "file path" ) in the terminal.
python ~/Desktop/Python_Examples/Example1.py
And press enter. Output Good Morning Nashik will be seen.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIMjHYAhwm_MAs01c06w6fVjKve-_nbEBO9gYZQOCLVL4pwbRYWLB8ugnhHm-XKwZlV4IeyhISeyv0SpfPagvvRMKgJPc9puJw4fgoM7lESZz3YS6oaPifEt5DbLCMmqPDl74CMt8Bjnk/s1600/vs12.png)
5 ) For more commands, type commands in file again and again and save then run file in terminal again and again.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-4dO0KLc7lIov32O3BzL9HMJ9g4DWbWtttiqFbD35S96Z9SHqq6UEbFxKNVtIiqnZ3zk6vuGRoJQzd3iN9qJCBSAJb5Dsu9Nq7EIxXwqCo-Cdlg7w-TO2bTPiG0bbgHwnMSPDzUeQy5Y/s1600/images+-+Copy.png)