How to Run Python 3.12 in Visual Studio Code on Windows 10 [2023]| Run Sample Python Program

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Hello guys, welcome to Amit Thinks. In this video  we will learn how we can set up the current Python   version on VS Code for that we'll be following  some steps first we will install VS Code then   we will install Python after that we will connect  both Python and VS Code and the last step we will   also run our first Python program on VS Code  let's start with the first step to install VS   Code go to the web browser I'm using Chrome you  can use any web browser on Google type VS Code   and press enter now the official website will be  visible code.visualstudio.com click on it this is   owned by Microsoft we want it for Windows if you  want for other versions click here but we want it   for Windows so I'll be just clicking here now the  download will start here it is only 90 MB let's wait guys we successfully downloaded the exe   file of VS Code now right click and  click open to begin the installation minimize accept the agreement click I accept  the agreement and click next now you need to   select the destination location wherein  VS Code will get installed keep it as it   is and it will only take 357 MB click next  now select start menu folder which is fine   click next additional task it will  set it to path which is fine you can   also create a desktop shortcut icon but  uh there's no need click next and click install installation started let's wait so guys we successfully installed VS Code  when I'll click finish it will launch you can   also go to start now and type VS Code and it  will be visible here it is you can click open   here also but I'll click finish and it will launch  so this is how you can install VS Codeon Windows 10 here and you can select the modes that is  the theme I'll keep it dark minimize so we   successfully installed VS Code guys now we will  install the current Python version let's start Go   to the web browser I'm using Chrome you can use  any web browser on Google type Python and press   enter on pressing enter the official website is  visible click on it python.org on reaching the   on reaching the official website go to downloads  keep the mouse cursor and click on the current   version that is Python 3.12 0 on clicking you can  see the download started it's only 25 MB let's wait now right click click  open to begin the installation minimize now the setup started select the  following use admin privileges add python.exe   to path and click on customize installation now  here in you can see what we are installing we   are installing pip also pip is used to download  install and manage python packages which is fine   we are also installing IDLE IDLE is an IDE to  run python programs we will see it later keep   it as it is and click next now select install  python 3.12 for all users here in it will also   set the python to environment variables  by default which is fine and here is the   location wherein python will get installed click  install now the installation will begin let's wait guys we have successfully installed  Python click close now let us verify   the installation go to start type CMD click  on open to open the command prompt now here   in type the command python --version and press  enter to verify the installation here and the   following version is visible that means we  successfully installed it guys we successfully   installed the current python version now let  us connect VS Code with python for that open   VS Code you can go to start and type VS  Code to open it for the first time click open now we will connect and uh now we will  connect Python and VS Code and also run our   first program okay for that you can directly  click on new file here or you can create a   new folder by clicking Open Folder or go here  click Open Folder go to file click open folder   go to Desktop and create a new folder let's  say I'll type AMITPROJECTS double click and   select the folder now here in you can see the same  folder is visible you can create anywhere on the system yes I trust the authors now here is  now here is a folder you can right-click and   create a new file here or you can click here  and create a new file now the first file I'll   name let's say demo the extension for Python  is .py and I'll just press enter now you can   see our first file will get created and it  will also ask you to install an extension so   this is the connection between Python and VS  Code or you can also go to here and click on   extensions and herein when you'll type python  the same thing will be visible here it is py   Python recommended here it is python okay  it's very popular so it is visible here you   can directly type python here and on typing the  same extension which is visible here is visible   here okay now you can select install here or  you can directly click here I'll show both so   I have clicked install and it is installing here  you can see so this will connect both Python and VS Code so guys we installed it okay here  it is you can see uninstall visible that   means we installed it this is the  official Python extension for VS   Code now I'll go to my demo. py you can  close this you can also close this and   you can go to a demo. py and write  your first code let's say I'll print something here it is okay now I'll go  to file and Save All Okay you can also   increase the font from here by going  to File, Go to Preferences, and click Settings here and go to text editor  font and herein the font is 14 only   I'll just change it to 20 and that's  it and press enter and when you'll go   here your font will increase close this  now I'll run it right click run python   file in terminal now the terminal  is visible it will run your file here so guys you can see it run our file  demo.py and the output is the same output   is visible here in so this is how  you can run Python current version   on VS Code if you want a complete  Python and vs code tutorial you can   refer to the link in the description  of this video thank you for watching
Info
Channel: Amit Thinks
Views: 38,475
Rating: undefined out of 5
Keywords: how to run python in visual studio code, visual studio code python, python in vscode, python vscode, vs code, run python in visual studio code, python visual studio code, how to run python in vscode, visual studio code, python visual studio, run python vscode windows 10, run python visual studio code, vscode python, python in visual studio code, how to setup python in vscode 2023, how to, python tutorial, python vscode setup, amit thinks
Id: 1R2jI0jYqOM
Channel Id: undefined
Length: 8min 25sec (505 seconds)
Published: Sat Oct 07 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.