<?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: Victor108003</title>
    <description>The latest articles on DEV Community by Victor108003 (@victor108003).</description>
    <link>https://dev.to/victor108003</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%2F852250%2F7e5a1b6d-5142-44ea-b15c-d2d6bf542ab5.png</url>
      <title>DEV Community: Victor108003</title>
      <link>https://dev.to/victor108003</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/victor108003"/>
    <language>en</language>
    <item>
      <title>Python 101:The ultimate Python Tutorial</title>
      <dc:creator>Victor108003</dc:creator>
      <pubDate>Sat, 23 Apr 2022 14:45:49 +0000</pubDate>
      <link>https://dev.to/victor108003/python-101the-ultimate-python-tutorial-12b3</link>
      <guid>https://dev.to/victor108003/python-101the-ultimate-python-tutorial-12b3</guid>
      <description>&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;br&gt;
Python is a high level programming language and an interpreted programming language. &lt;/p&gt;

&lt;p&gt;(#)Printing hello world.&lt;br&gt;
    print('Hello world')&lt;br&gt;
      output:Hello world&lt;br&gt;
The extension of python is (.py)&lt;br&gt;
&lt;strong&gt;Comments&lt;/strong&gt;&lt;br&gt;
They explain how a code works.&lt;/p&gt;

&lt;p&gt;Unlike other programming language python uses whitespace and indentation to construct the code structure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Keywords&lt;/strong&gt;&lt;br&gt;
Are words that have special meaning in python.&lt;br&gt;
To find current keywords you use;&lt;br&gt;
    import keyword&lt;br&gt;
    print(keywords.kwlist)&lt;/p&gt;

&lt;p&gt;Python uses(''),(""),("""),(''')to denote a string literal.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Variables&lt;/strong&gt;&lt;br&gt;
Used to store values.&lt;/p&gt;

&lt;p&gt;`message='Hello world'&lt;br&gt;
print(message)&lt;/p&gt;

&lt;p&gt;message='Good bye'&lt;br&gt;
print(message)            #message is a variable&lt;/p&gt;

&lt;p&gt;output:&lt;br&gt;
Hello world&lt;br&gt;
Good bye`&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To define a variable you use the following syntax:&lt;/strong&gt;&lt;br&gt;
variable_name=value&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Guidelines to define variables&lt;/strong&gt;&lt;br&gt;
(i)Variables name should be concise and descriptive&lt;br&gt;
(ii)Use underscore to separate multiple words.&lt;br&gt;
(iii)Avoid using letter I and uppercase O cause they look like numbers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Strings&lt;/strong&gt;&lt;br&gt;
In python anything inside quotes is a string.&lt;br&gt;
eg: &lt;br&gt;
   name='Ashly'&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Control flow&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;a.if statement&lt;br&gt;
    syntax:&lt;br&gt;&lt;br&gt;
           if condition:&lt;br&gt;
              if block&lt;br&gt;
eg.&lt;br&gt;
  age=input("Enter you age:")&lt;br&gt;
    if int(age&amp;gt;18):&lt;br&gt;
       print("You are an adult")&lt;/p&gt;

&lt;p&gt;b.if...else statement&lt;/p&gt;

&lt;p&gt;performs an action when condition is true and another action when condition is false.&lt;br&gt;
syntax: &lt;br&gt;
      &lt;code&gt;if condition:&lt;br&gt;
          if block;&lt;br&gt;
        else:&lt;br&gt;
             else block;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;c.for loop&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;syntax:     
    for index in range(n):
        statements;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;use the &lt;strong&gt;range&lt;/strong&gt;(start,stop,step) to customize loop.&lt;/p&gt;

&lt;p&gt;d.while loop&lt;/p&gt;

&lt;p&gt;Executes statement when condition is true.&lt;br&gt;
      syntax:&lt;br&gt;&lt;br&gt;
             while condition:&lt;br&gt;
                        body;&lt;/p&gt;

&lt;p&gt;Use &lt;strong&gt;break&lt;/strong&gt; to terminate loop in while or for loop&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;lists&lt;/strong&gt;&lt;br&gt;
Is an ordered collection of items.&lt;br&gt;
Python uses[]to indicate a list and to separate items you use comma(,).&lt;br&gt;
   &lt;strong&gt;Tuples&lt;/strong&gt;&lt;br&gt;
Is a list that cannot change.&lt;br&gt;
Uses parentheses().&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;append&lt;/strong&gt; is used to add elements to the existing list.&lt;br&gt;
&lt;strong&gt;insert&lt;/strong&gt; adds new element at any position.&lt;br&gt;
&lt;strong&gt;del&lt;/strong&gt; allow you to remove element from a list.**&lt;br&gt;
&lt;strong&gt;pop&lt;/strong&gt; removes last element from a list.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
