<?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: Emmanuel Nwachukwu</title>
    <description>The latest articles on DEV Community by Emmanuel Nwachukwu (@emmanuel_nwachukwu_2f9d93).</description>
    <link>https://dev.to/emmanuel_nwachukwu_2f9d93</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%2F824579%2F9f58893f-7f23-4bac-a574-d0f07d7fd16d.png</url>
      <title>DEV Community: Emmanuel Nwachukwu</title>
      <link>https://dev.to/emmanuel_nwachukwu_2f9d93</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/emmanuel_nwachukwu_2f9d93"/>
    <language>en</language>
    <item>
      <title>PYTHON PROGRAMMING  (INTRODUCTION)</title>
      <dc:creator>Emmanuel Nwachukwu</dc:creator>
      <pubDate>Thu, 03 Mar 2022 12:17:08 +0000</pubDate>
      <link>https://dev.to/emmanuel_nwachukwu_2f9d93/python-programming-introduction-1303</link>
      <guid>https://dev.to/emmanuel_nwachukwu_2f9d93/python-programming-introduction-1303</guid>
      <description>&lt;p&gt;&lt;strong&gt;History Of Python&lt;/strong&gt;&lt;br&gt;
_Python is one of the most popular programming languages that is sought after for jobs by employers. Python is powerful, easy to use and beginner-friendly. This article introduces the reader to basic concepts that they require to know in order to get started programming with Python. Python is basically a computer language _&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;HISTORY OF PYTHON *&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Python was developed by Guido van Rossum in the late 1980s.&lt;br&gt;
Guido van Rossum was reading scripts from a BBC comedy series known as "Monty Python's Flying Circus".&lt;br&gt;
He wanted a name that was short and unique, hence he named the language Python.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BASIC FUNTIONS OF PYTHON&lt;/strong&gt;&lt;br&gt;
1 Web development&lt;br&gt;
2 Software development&lt;br&gt;
3 mathematical calculations&lt;br&gt;
4 Programming&lt;br&gt;
5 Application development etc.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CAREERS AVAILABLE FOR PYTHON PROGRAMMERS&lt;/strong&gt;&lt;br&gt;
1 AI intelligence&lt;br&gt;
2 Software Developer&lt;br&gt;
3 Program Developer&lt;br&gt;
4 Robotics&lt;br&gt;
5 Lecturer&lt;/p&gt;

&lt;p&gt;Installing Python&lt;br&gt;
Visit &lt;a href="http://www.python.org"&gt;www.python.org&lt;/a&gt; to download and install the latest python version. Python 3 is best for beginners since it is being actively maintained and supported by Python.&lt;/p&gt;

&lt;p&gt;Install a text editor&lt;br&gt;
Visit &lt;a href="https://www.python.org/about/gettingstarted/"&gt;https://www.python.org/about/gettingstarted/&lt;/a&gt; to learn about which text editor and IDE is best for beginners in Python. You can download and install PyCharm community version at &lt;a href="https://www.jetbrains.com/pycharm/download/#section=windows"&gt;https://www.jetbrains.com/pycharm/download/#section=windows&lt;/a&gt;, or Visual Studio Code at &lt;a href="https://code.visualstudio.com"&gt;https://code.visualstudio.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Creating your first python program&lt;br&gt;
1) Open your IDE and select 'create a new project'.&lt;br&gt;
2) Choose a location for your project and an interpreter.&lt;br&gt;
3) Click on create.&lt;br&gt;
4) Right-click on 'File' then click on 'New'&amp;gt;'Python File' and give it a name ,say 'Pyth' then click 'Ok'.&lt;br&gt;
5) We can begin by writing a basic Python program, the Hello World! program. We do this by typing in&lt;br&gt;
print('Hello World!')&lt;/p&gt;

&lt;p&gt;6) Go to the 'Run' menu and select the 'Run' button in order to run your program.&lt;br&gt;
7) At the bottom of the screen, you should be able to see&lt;br&gt;
Hello World!&lt;br&gt;
8) Congratulations, you have written your first Python program!&lt;br&gt;
Check out the tutorial at &lt;a href="https://realpython.com"&gt;https://realpython.com&lt;/a&gt; or &lt;a href="https://www.guru.com"&gt;https://www.guru.com&lt;/a&gt; for these steps.&lt;br&gt;
Also check out &lt;a href="https://www.youtube.com/watch?v=_uQrJ0TkZlc"&gt;https://www.youtube.com/watch?v=_uQrJ0TkZlc&lt;/a&gt; for beginner-friendly YouTube videos.&lt;/p&gt;

&lt;p&gt;Program&lt;br&gt;
A program refers to the lines of code that give the computer the instructions to be executed.&lt;/p&gt;

&lt;p&gt;Console&lt;br&gt;
The console is where Python outputs the code. The program is executed in order, from top to bottom.&lt;br&gt;
We use print statement to execute instructions in Python e.g&lt;br&gt;
print('Hello World')&lt;/p&gt;

&lt;p&gt;Receiving input&lt;br&gt;
We use input to read values from the terminal window.&lt;br&gt;
first_number = input('Enter your first number: ')&lt;br&gt;
print(first_number)&lt;br&gt;
Comments&lt;br&gt;
Comments are added using hash character #.They can be used to make the code more readable by explaining the code.&lt;br&gt;
NOTE&lt;br&gt;
Python does not execute comments.&lt;/p&gt;

&lt;h1&gt;
  
  
  anything after this hash character is a comment.
&lt;/h1&gt;

&lt;p&gt;Keywords&lt;br&gt;
Keywords are reserve words in Python that have special meaning.&lt;br&gt;
They are written in lower-case except for True and False keywords.&lt;/p&gt;

&lt;p&gt;Type conversions&lt;br&gt;
The types of data in Python include strings, numbers and Boolean values.&lt;/p&gt;

&lt;p&gt;1.Strings&lt;br&gt;
A string is a sequence of characters. In Python we surround strings with quotes, either single 'Hello World!' or double "Hello World!" quotes.&lt;br&gt;
String concatenation&lt;br&gt;
String concatenation refers to combining one string with another e.g&lt;br&gt;
print('Hello'+ ' Pam')&lt;/p&gt;

&lt;h1&gt;
  
  
  Output
&lt;/h1&gt;

&lt;p&gt;Hello Pam&lt;/p&gt;

&lt;p&gt;2.Numbers&lt;br&gt;
We can store numbers inside variables.&lt;br&gt;
We use parentheses to specify the order of operations e.g ((3+4)*7).&lt;br&gt;
We use str function to print out a number next to a string e.g&lt;br&gt;
my_num = 6&lt;br&gt;
print(str(my_num) + ' is the best number.')&lt;/p&gt;

&lt;h1&gt;
  
  
  in the console this produces 6 is the best number
&lt;/h1&gt;

&lt;p&gt;Arithmetic&lt;br&gt;
i) Addition(+)&lt;br&gt;
ii) Subtraction(-)&lt;br&gt;
iii)Multiplication (&lt;em&gt;)&lt;br&gt;
iv) Division(/)&lt;br&gt;
v) Modulus(%)&lt;br&gt;
vi) Exponent(&lt;/em&gt;&lt;em&gt;)&lt;br&gt;
vii)Equality operator(==)&lt;br&gt;
viii)Not equal(!=)&lt;br&gt;
ix) Comparison operators(&amp;gt;,&amp;gt;=,&amp;lt;,&amp;lt;=)&lt;br&gt;
examples&lt;br&gt;
print(5 + 3) &lt;br&gt;
print(5 - 3)&lt;br&gt;
print(5 * 3)&lt;br&gt;
print(5 /3)&lt;br&gt;
print(5 % 3)&lt;br&gt;
print(5 *&lt;/em&gt; 3)&lt;br&gt;
print(5 != 3) &lt;br&gt;
3.Boolean values&lt;br&gt;
Boolean values are defined by True and False keywords.&lt;/p&gt;

&lt;p&gt;Variables&lt;br&gt;
A variable is used to store data temporarily in the computer memory.&lt;br&gt;
We start by declaring the name of the variable equal to the value of the variable e.g age=20.&lt;br&gt;
We can declare a variable and assign it a string value e.g name = "Pam".&lt;br&gt;
If you are using multiple words for the name of a variable, separate the name with an underscore e.g first_name.&lt;/p&gt;

&lt;p&gt;Functions&lt;br&gt;
A function is a collection of code that performs a specific task. Any code inside the function needs to be indented.&lt;br&gt;
The def keyword is used to define a function in Python.&lt;br&gt;
A code inside a function can only be executed when we call the function i.e type out the function name followed by open-close parenthesis ().&lt;br&gt;
def say_hello():&lt;br&gt;
    print('Hello User')&lt;/p&gt;

&lt;p&gt;say_hello()&lt;/p&gt;

&lt;h1&gt;
  
  
  console shows Hello User
&lt;/h1&gt;

&lt;p&gt;Functions are used to modify strings and to get more information about strings.&lt;br&gt;
Built-in functions&lt;br&gt;
They are used to convert functions to variables and include;&lt;br&gt;
int()&lt;br&gt;
float()&lt;br&gt;
bool()&lt;br&gt;
str()&lt;/p&gt;

&lt;p&gt;Functions related to numbers&lt;br&gt;
abs-absolute value.&lt;br&gt;
pow-power.&lt;br&gt;
max-gives the largest number.&lt;br&gt;
min-gives the smallest number.&lt;br&gt;
round-rounding up/down.&lt;br&gt;
ceil-ceiling function.&lt;br&gt;
sqrt-square root.&lt;/p&gt;

&lt;p&gt;Parameter&lt;br&gt;
A parameter is a value that you can give to a function.&lt;br&gt;
def say_hello(name):&lt;br&gt;
    print('Hello '+ name)&lt;/p&gt;

&lt;p&gt;say_hello('Pam')&lt;/p&gt;

&lt;h1&gt;
  
  
  console shows Hello Pam
&lt;/h1&gt;

&lt;p&gt;Return statement&lt;br&gt;
return keyword allows Python to return information from a function. In Python we can return any data types.&lt;br&gt;
def square(num):&lt;br&gt;
    return num*num &lt;/p&gt;

&lt;p&gt;result = square(5)&lt;br&gt;
print(result)&lt;/p&gt;

&lt;h1&gt;
  
  
  console gives 25
&lt;/h1&gt;

&lt;p&gt;Logical operators&lt;br&gt;
These are used to evaluate expressions to Boolean values.&lt;/p&gt;

&lt;p&gt;i) and-returns True if both expressions return True.&lt;br&gt;
ii) or-returns True if at least one expression returns True.&lt;br&gt;
iii) not-is placed at the beginning and inverse any value.&lt;/p&gt;

&lt;p&gt;If statements&lt;br&gt;
if statements are used to make decisions in our programs.&lt;br&gt;
num1 = float(input("Enter first number: "))&lt;br&gt;
op = input("Enter operator: ")&lt;br&gt;
num2 = float(input("Enter second number: ")&lt;/p&gt;

&lt;p&gt;if op == "+"&lt;br&gt;
     print(num1 + num2)&lt;br&gt;
elif op == "-"&lt;br&gt;
     print(num1 - num2)&lt;br&gt;
elif op == "*"&lt;br&gt;
     print(num1 * num2)&lt;br&gt;
elif op == "/"&lt;br&gt;
     print(num1 / num2)&lt;br&gt;
else: &lt;br&gt;
     print("Invalid operator")&lt;br&gt;
While loops&lt;br&gt;
while loop is used to repeat and execute a block of code multiple times. The code inside the loop gets executed as long as the condition holds.&lt;br&gt;
i = 1&lt;br&gt;
while i &amp;lt;= 10:&lt;br&gt;
     print(i)&lt;br&gt;
     i = i + 1  #can also use i += 1&lt;br&gt;
print('Done')&lt;/p&gt;

&lt;h1&gt;
  
  
  console shows
&lt;/h1&gt;

&lt;p&gt;1&lt;br&gt;
2&lt;br&gt;
3&lt;br&gt;
4&lt;br&gt;
5&lt;br&gt;
6&lt;br&gt;
7&lt;br&gt;
8&lt;br&gt;
9&lt;br&gt;
10&lt;br&gt;
Done&lt;/p&gt;

&lt;p&gt;For loops&lt;br&gt;
for loops are used to iterate over a sequence, which can be a string, list, tuple, set, dictionary or other iterable objects.&lt;br&gt;
fruits = ['peach', 'passion', 'pear']&lt;br&gt;
for word in fruits:&lt;br&gt;
    print(word)&lt;/p&gt;

&lt;h1&gt;
  
  
  console gives us
&lt;/h1&gt;

&lt;p&gt;peach&lt;br&gt;
passion&lt;br&gt;
pear&lt;/p&gt;

&lt;p&gt;Index&lt;br&gt;
An index tells us where a specific character is located inside our string, list or tuple. Strings are indexed starting with 0.&lt;/p&gt;

&lt;p&gt;Lists&lt;br&gt;
A list is an ordered collection of items. We give lists descriptive names. We can access elements on a list based off of their index.&lt;br&gt;
fruits = ["bananas", "oranges", "mangoes", "apples"]&lt;br&gt;
print(fruits[0])&lt;/p&gt;

&lt;h1&gt;
  
  
  console shows bananas
&lt;/h1&gt;

&lt;p&gt;List Functions&lt;br&gt;
append-to add a new element at the end of a list.&lt;br&gt;
insert-to add a new element at the beginning of a list.&lt;br&gt;
in-to check whether an item exists on our list or not.&lt;br&gt;
len-to know how many items we have on a list.&lt;br&gt;
for-to iterate over all values.&lt;br&gt;
extend-to append lists.&lt;br&gt;
count-to know how many times a value appears on the list.&lt;br&gt;
sort-to arrange items on a list in alphabetical order.&lt;br&gt;
reverse-to reverse the order of lists.&lt;br&gt;
remove-to remove an element from a list.&lt;br&gt;
pop-to remove the last element from a list.&lt;br&gt;
clear-to remove all elements from a list.&lt;/p&gt;

&lt;p&gt;Tuples&lt;br&gt;
Tuples are used to store a sequence of objects. Tuples are immutable, once they are created they cannot be changed or modified. They are indexed starting with 0.&lt;br&gt;
coordinates = (35, 67)&lt;br&gt;
print(coordinates[0])&lt;/p&gt;

&lt;h1&gt;
  
  
  console shows 35
&lt;/h1&gt;

&lt;p&gt;Dictionaries&lt;br&gt;
Dictionaries are special structures that allow us to store information in key-value pairs. Each key in a key-value pair is associated with a given value. The keys must be unique. A value can be a string, number, list or a tuple.&lt;br&gt;
ex_dict = {&lt;br&gt;
      "Mon": "Monday",&lt;br&gt;
      "Tue": "Tuesday",&lt;br&gt;
      "Wed": "Wednesday",&lt;br&gt;
      "Thu": "Thursday",&lt;br&gt;
      "Fri": "Friday",&lt;br&gt;
      }&lt;br&gt;
 print(ex_dict.get("Wed"))&lt;/p&gt;

&lt;h1&gt;
  
  
  console shows Wednesday
&lt;/h1&gt;

&lt;p&gt;Files&lt;br&gt;
Python read command allows us to get information from a file stored outside of a Python file.&lt;br&gt;
The built-in open() function is used to open files.&lt;br&gt;
We can open files in different modes;&lt;br&gt;
'r'-read mode -used only to read information from a file.&lt;br&gt;
'w'-write mode -used when we want to change existing information in the file.&lt;br&gt;
'a'-append mode-used to add new information at the end of a file.&lt;br&gt;
'r+'-read and write mode-allows us to read and write inside our file.&lt;br&gt;
't'- to open a file in text mode.&lt;br&gt;
'b'-to open a file in binary mode.&lt;br&gt;
We use close() function to close a file.&lt;br&gt;
For example, if we have a file outside python named workers, then we can read it using:&lt;br&gt;
workers_file = open('workers.txt', 'r')&lt;/p&gt;

&lt;p&gt;print(workers_file.read())&lt;/p&gt;

&lt;p&gt;workers_file.close()&lt;/p&gt;

&lt;p&gt;Classes and Objects&lt;br&gt;
Classes and objects in Python help us represent items that cannot be represented as strings, numbers or Booleans.&lt;br&gt;
We can create our own new data types using classes and objects.&lt;br&gt;
Classes are defined by the class keyword.&lt;br&gt;
The tutorial &lt;a href="https://www.programiz.com/python-programming/class"&gt;https://www.programiz.com/python-programming/class&lt;/a&gt; gives us more information on classes and objects.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>python</category>
      <category>beginners</category>
      <category>career</category>
    </item>
    <item>
      <title>Introduction To python (comments, variables, data types and numbers.)</title>
      <dc:creator>Emmanuel Nwachukwu</dc:creator>
      <pubDate>Thu, 03 Mar 2022 11:32:55 +0000</pubDate>
      <link>https://dev.to/emmanuel_nwachukwu_2f9d93/introduction-to-python-comments-variables-data-types-and-numbers-5de1</link>
      <guid>https://dev.to/emmanuel_nwachukwu_2f9d93/introduction-to-python-comments-variables-data-types-and-numbers-5de1</guid>
      <description>&lt;p&gt;Python is one of the most widely used programming languages. Guido van Rossum created it, and it was released in 1991. It's used for server-side web development, software development, mathematics, and system programming just to mention.&lt;/p&gt;

&lt;p&gt;Python is well-known for its general-purpose character, which makes it suitable for and the finest solution provider in practically any software development domain. Python is used in a variety of developing fields, including Data Science and Big Data Analytics. It is the most popular programming language and may be used to create any application.&lt;/p&gt;

&lt;p&gt;A Python script which is essentially a file that contains a python code should have an extension .py and can be run from the command line by typing python file_name.py&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;characteristic Of Python&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Python is a free and open source programming language that can be downloaded from the official website, with even its source code available.&lt;/li&gt;
&lt;li&gt;Python can be used for rapid prototyping, or for production-ready software development.&lt;/li&gt;
&lt;li&gt;Platform Independent, write once and run anywhere&lt;/li&gt;
&lt;li&gt;python can connect to database systems. It can also read and modify files.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;em&gt;python is used for *&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;web development (server-side),&lt;/li&gt;
&lt;li&gt;software development,&lt;/li&gt;
&lt;li&gt;mathematics,&lt;/li&gt;
&lt;li&gt;system scripting.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Python Syntax compared to other programming languages&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Python was designed for readability, and has some similarities to the English language with influence from mathematics.&lt;br&gt;
Python uses new lines to complete a command, as opposed to other programming languages which often use semicolons or parentheses.&lt;br&gt;
Python relies on indentation, using whitespace, to define scope; such as the scope of loops, functions and classes. Other programming languages often use curly-brackets for this purpose.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My First Python Program&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print ("hello world")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;then run the program and the output below will be displayed&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;hello World
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Python Comments&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Comments can be used to explain Python code.&lt;/p&gt;

&lt;p&gt;Comments can be used to make the code more readable.&lt;/p&gt;

&lt;p&gt;Comments can be used to prevent execution when testing code.&lt;/p&gt;

&lt;p&gt;To begin creating a comment in python we utilize the hash symbol (#)&lt;br&gt;
If we have comments that span multiple lines, multi-line comments we can use the hash symbol at the start of each line . Another option is to use triple quotes such as ''' or """&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# This is a single line comment

'''
multiline comment
This comment is written in more than one line
'''
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A comment does not have to be text that explains the code, it can also be used to prevent Python from executing code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#print("Good, Mercedes!")
print("Cheers, lasucbt")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;when you run your code the output below will be displayed&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Cheers, lasucbt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;conclusion&lt;/strong&gt;&lt;br&gt;
Comments can be used to explain Python code. Comments can be used to make the code more readable. Comments can be used to prevent execution when testing code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python Variables&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Variables are names that are connected to a specific object in Python. They keep a reference to the memory address where an item is stored, often known as a pointer.&lt;br&gt;
Variables are containers for storing data values.&lt;br&gt;
The syntax is as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;variable_name = variable_value
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Creating Variables&lt;/em&gt;&lt;br&gt;
Python has no command for declaring a variable.&lt;/p&gt;

&lt;p&gt;A variable is created the moment you first assign a value to it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;x = 5
y = "John"
print(x)
print(y)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;when you run the code the output below will be displayed&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;5
John
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Variable Names&lt;/strong&gt;&lt;br&gt;
A variable can have a short name (like x and y) or a more descriptive name (age, carname, total_volume). Rules for Python variables:&lt;br&gt;
A variable name must start with a letter or the underscore character&lt;br&gt;
A variable name cannot start with a number&lt;br&gt;
A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ )&lt;br&gt;
Variable names are case-sensitive (age, Age and AGE are three different variables)&lt;/p&gt;

&lt;p&gt;Always name your variables in a way that is both intuitive and readable.&lt;br&gt;
Uppercase and lowercase letters (A-Z, a-z), numerals (0-9), and the underscore character (_) can all be used in variable names.&lt;br&gt;
Variable names may contain digits, but the initial character must not be a numeric.&lt;/p&gt;

&lt;p&gt;Variables do not require declaration. Python is a dynamically typed language since their data types are deduced from their assignment statement. This means that throughout the code, different data types might be given to the same variable.&lt;/p&gt;

&lt;p&gt;Below are examples:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;first_name = "elijah"
print(first_name)

middle_name = "khalifa"
print(middle_name)

last_name = "joy"
print(last_name)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run the code and the output below will be displayed&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;elijah
khalifa
joy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Python allows you to assign values to multiple variables in one line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;x, y, z = "Orange", "Banana", "Cherry"
print(x)
print(y)
print(z)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run the code and the output below will be displayed&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Orange
Banana
Cherry
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br&gt;
python variables has different segments under it like &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;variable names&lt;/li&gt;
&lt;li&gt;assign multiple variables&lt;/li&gt;
&lt;li&gt;output variables&lt;/li&gt;
&lt;li&gt;global variables&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Like any other programming language, the concept of variables plays a significant role in python. The classified number of functionalities and flexibility in coding them make variables more precise entities for access in the python programming language.&lt;br&gt;
A Python variable is a reserved memory location to store values. In other words, a variable in a python program gives data to the computer for processing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python Data Types&lt;/strong&gt;&lt;br&gt;
Built-in Data Types&lt;br&gt;
In programming, data type is an important concept.&lt;/p&gt;

&lt;p&gt;Variables can store data of different types, and different types can do different things.&lt;/p&gt;

&lt;p&gt;Python has the following data types built-in by default, in these categories:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Text Type:   str&lt;br&gt;
Numeric Types:  int, float, complex&lt;br&gt;
Sequence Types: list, tuple, range&lt;br&gt;
Mapping Type:   dict&lt;br&gt;
Set Types:  set, frozenset&lt;br&gt;
Boolean Type:   bool&lt;br&gt;
Binary Types:   bytes, bytearray, memoryview&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python Numbers&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There are three numeric types in Python:&lt;br&gt;
&lt;code&gt;int&lt;br&gt;
float&lt;br&gt;
complex&lt;/code&gt;.&lt;/p&gt;

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