<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Asogba olamide mauklo </title>
    <description>The latest articles on DEV Community by Asogba olamide mauklo  (@olamide_asogba).</description>
    <link>https://dev.to/olamide_asogba</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4025878%2F2c243002-926c-4232-83ac-9b8a16a0dffd.jpg</url>
      <title>DEV Community: Asogba olamide mauklo </title>
      <link>https://dev.to/olamide_asogba</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/olamide_asogba"/>
    <language>en</language>
    <item>
      <title>How to Run Your First Python Script in VS Code: A Beginner's Guide</title>
      <dc:creator>Asogba olamide mauklo </dc:creator>
      <pubDate>Sun, 12 Jul 2026 13:03:16 +0000</pubDate>
      <link>https://dev.to/olamide_asogba/how-to-run-your-first-python-script-in-vs-code-a-beginners-guide-19a6</link>
      <guid>https://dev.to/olamide_asogba/how-to-run-your-first-python-script-in-vs-code-a-beginners-guide-19a6</guid>
      <description>&lt;p&gt;Getting started with coding can feel overwhelming, but setting up your environment doesn't have to be. In this quick tutorial, we will walk through exactly how to set up Visual Studio Code (VS Code) and run your very first Python script from scratch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;br&gt;
Before we start, make sure you have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;VS Code installed on your computer&lt;br&gt;
.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Python downloaded and installed from the official website.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Step 1: Open VS Code and Create a New File&lt;br&gt;
First, launch VS Code on your desktop.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Click&lt;/strong&gt; on File in the top menu and select New File or press Ctrl + N on Windows / Cmd + N on Mac to open a blank text sheet.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Save&lt;/strong&gt; the file immediately by naming it hello.py. Crucial tip: The .py extension tells VS Code that we are writing Python code&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Step 2: Install the Python Extension&lt;/p&gt;

&lt;p&gt;To make it  easier, VS Code needs to understand Python syntax.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;On the left sidebar, click on the Extensions icon (it looks like four squares).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Search&lt;/strong&gt; for "Python" and click the blue Install button on the official extension by Microsoft.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Step 3: Write Your First Line of Code&lt;/p&gt;

&lt;p&gt;Now, go back to your hello.py file. Let's write the classic starter code.Type out the following line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hello, World!&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;print() just tells the computer to show whatever text is inside the quotation marks on the screen&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Step 4: Run the code!&lt;/p&gt;

&lt;p&gt;It's time for the moment.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Look&lt;/strong&gt; at the top-right corner of your screen. Click the Play button (Run Python File).
Your terminal will pop up at the bottom, and you will see the words 'Hello, World!' printed out!&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Troubleshooting: What if the Run Button Doesn't Work?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When you click the play button, you might see an error in your terminal saying something like "python is not recognized" or a terminal execution hurdle. Don't panic! This just means VS Code doesn't know where Python is hiding on your computer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to fix it:&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Look&lt;/strong&gt; at the very bottom right-hand corner of your VS Code window. You will see a small label showing the current Python version (e.g., Python 3.x.x).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Click&lt;/strong&gt; on that version label. A menu will drop down at the top of your screen called "Select Interpreter".&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Choose&lt;/strong&gt; the option that says "Recommended" or points directly to the global path where you downloaded Python.&lt;br&gt;
Once you select the correct interpreter, kill your current terminal session by clicking the little trash can icon in the terminal panel and click the Play button again. It will run perfectly!&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br&gt;
You've executed your first Python program in VS Code. From here, you can start experimenting with variables, loops, and building your own cool scripts.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>python</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
