<?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>Forem: Elphas</title>
    <description>The latest articles on Forem by Elphas (@elphasmaluki).</description>
    <link>https://forem.com/elphasmaluki</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F813180%2F9b63d3a2-15a7-4efe-a8f6-3d59bd2426fc.png</url>
      <title>Forem: Elphas</title>
      <link>https://forem.com/elphasmaluki</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/elphasmaluki"/>
    <language>en</language>
    <item>
      <title>Python 101: Ultimate Python Guide</title>
      <dc:creator>Elphas</dc:creator>
      <pubDate>Fri, 11 Feb 2022 09:02:03 +0000</pubDate>
      <link>https://forem.com/elphasmaluki/python-101-ultimate-python-guide-2ojc</link>
      <guid>https://forem.com/elphasmaluki/python-101-ultimate-python-guide-2ojc</guid>
      <description>&lt;p&gt;__&lt;/p&gt;

&lt;h3&gt;
  
  
  Introduction
&lt;/h3&gt;

&lt;p&gt;Python is a high level programming language that was developed by &lt;strong&gt;Guido van Rossum&lt;/strong&gt;.&lt;br&gt;
It is also referred to as general purpose programming language due to its wide range of applications such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Data Analytics&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Web Development&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Machine Learning &amp;amp; AI&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Wed Data Scraping&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Data Science &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Desktop Applications&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Setting Up Python
&lt;/h3&gt;

&lt;p&gt;Python comes with 2 main distributions ;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Python Software Foundation (PSF)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Anaconda Distribution&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In this article, we'll only focus on the PSF.&lt;/p&gt;

&lt;h3&gt;
  
  
  Install Python
&lt;/h3&gt;

&lt;p&gt;Python installation for Windows does not need much othee than downloading the Python installer from &lt;a href="https://www.python.org/" rel="noopener noreferrer"&gt;python.org&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Downlaod the installer
&lt;/h3&gt;

&lt;p&gt;Open your favorite browser window and navigate to the &lt;a href="https://www.python.org/downloads/release/python-3102/" rel="noopener noreferrer"&gt;python download page for Windows.&lt;/a&gt;&lt;br&gt;
Click on the link for the latest Python 3 Release. O went with Python 3.9.6 which is the most stable 3.9.x version for demonstration purposes.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Run the installer
&lt;/h3&gt;

&lt;p&gt;Double-click on the downloaded .exe file and you should see the following window pop up;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9pjlum8pvhbhwc7035na.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9pjlum8pvhbhwc7035na.jpeg" alt="Python installer window"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Important:&lt;/strong&gt; Make sure to check the box that says &lt;em&gt;add python 3 x to path&lt;/em&gt; to ensure that the install places the interpretor into your execution path.&lt;br&gt;
Click on &lt;strong&gt;Install now&lt;/strong&gt; to install Python 3 and wait for the installation to finish.&lt;/p&gt;

&lt;h3&gt;
  
  
  First python program
&lt;/h3&gt;

&lt;p&gt;Now that we are done with python 3 installation, it's time time to write our first program.&lt;br&gt;
There are numerous IDE's and text editors to write Python code but in this tutorial we'll use Python's built'in IDLE.&lt;br&gt;
To open IDLE, type the following command in youe command prompt.&lt;br&gt;
&lt;code&gt;$ idle-python3.9&lt;/code&gt;&lt;br&gt;
IDLE opens a &lt;strong&gt;Python shell&lt;/strong&gt; in a new window.&lt;br&gt;
The Python shell is an interactive environment that allows you to write python code and execute it imediately.&lt;br&gt;
This is we write our "Hello, world" program.&lt;br&gt;
To print out something in Python, we use the &lt;code&gt;print()&lt;/code&gt; function.&lt;br&gt;
Type the code below in your interactive python shell.&lt;br&gt;
&lt;code&gt;print("Hello, World")&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Running our first code
&lt;/h3&gt;

&lt;p&gt;Before running our code, we need to save it. Click on File then Save As and save your code as &lt;em&gt;"hello.py"&lt;/em&gt;.&lt;br&gt;
Notice the &lt;em&gt;.py&lt;/em&gt; extension; that tells our intepretor that it is running a python code.&lt;br&gt;
After saving your code, click &lt;strong&gt;f5&lt;/strong&gt; to run. &lt;br&gt;
If all went well, the following window should appear;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0b253b6r35fhntva4puz.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0b253b6r35fhntva4puz.jpeg" alt="Hello world"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;This was a tutorial on getting started with Python programming. We have gone through the installation provess and written our hello, world program.&lt;br&gt;
But there is more to Python programming than that.&lt;br&gt;
In the next article, we'll be looking at Strings and Methods.&lt;br&gt;
Thanks for reading.&lt;/p&gt;

</description>
      <category>python</category>
      <category>beginners</category>
      <category>tutorial</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
