<?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: Amina Ali</title>
    <description>The latest articles on DEV Community by Amina Ali (@aminaali).</description>
    <link>https://dev.to/aminaali</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%2F814695%2F4af7c3ef-a460-4627-9786-dd112fe08bb8.png</url>
      <title>DEV Community: Amina Ali</title>
      <link>https://dev.to/aminaali</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aminaali"/>
    <language>en</language>
    <item>
      <title>Python for everyone: Mastering Python The Right Way</title>
      <dc:creator>Amina Ali</dc:creator>
      <pubDate>Mon, 28 Feb 2022 18:52:11 +0000</pubDate>
      <link>https://dev.to/aminaali/python-for-everyone-mastering-python-the-right-way-2hnk</link>
      <guid>https://dev.to/aminaali/python-for-everyone-mastering-python-the-right-way-2hnk</guid>
      <description>&lt;p&gt;One of the  most asked questions  you  get asked as a developer or maybe even u asked on your journey to being a developer is  “ what is the right way of mastering python or any other programming language ?”  and my answer is simple: understand how to learn , why do i say this ? &lt;/p&gt;

&lt;p&gt;I believe that the first step in learning any programming language is making sure that you understand how to learn. Learning how to learn is arguably the most critical skill involved in computer programming.&lt;br&gt;
Why is knowing how to learn so important? The answer is simple: as languages evolve, libraries are created, and tools are upgraded. Knowing how to learn will be essential to keeping up with these changes and becoming a successful programmer. &lt;br&gt;
Various learning technique are reading python programming books watch the youtube link below to search for  a few of which i suggest you get your hands on &lt;a href="https://www.youtube.com/watch?v=iKjlIud4So8"&gt;https://www.youtube.com/watch?v=iKjlIud4So8&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Other learning technique are watching  youtube tutorials  or any other tutorials on the how to learn python  here are few youtube channel i believed it helped me and will help you on your beginner journey as a python developer &lt;br&gt;
&lt;strong&gt;Freecodecamp.org&lt;/strong&gt;, &lt;strong&gt;The odinproject.com&lt;/strong&gt; , &lt;strong&gt;Codeacademy.com&lt;/strong&gt; , &lt;strong&gt;khanacademy.com&lt;/strong&gt;, &lt;strong&gt;developer .mozilla.org&lt;/strong&gt;, &lt;strong&gt;W3schools.com&lt;/strong&gt; , &lt;strong&gt;Studywebdevelopment.com&lt;/strong&gt; ,&lt;strong&gt;Coursera.org&lt;/strong&gt; , &lt;strong&gt;Teamtreehouse.com&lt;/strong&gt;.&lt;br&gt;
 You can also enroll in the coding school either physical or online to get taught by my mentor  . all above technique are the best way i can say are the best way to learn&lt;br&gt;&lt;br&gt;
Check out this  previous article &lt;a href="https://dev.to/aminaali/introduction-to-modern-python-2jch"&gt;https://dev.to/aminaali/introduction-to-modern-python-2jch&lt;/a&gt;&lt;br&gt;
where I explained how to install and set up your python ,  introduction  to python as well as some exercise to get you started . Check this other article to learn Data structure in python &lt;a href="https://dev.to/aminaali/introduction-to-data-structures-and-algorithms-with-python-1686"&gt;https://dev.to/aminaali/introduction-to-data-structures-and-algorithms-with-python-1686&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Tips that can help you master what you learn
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1.Code everyday&lt;/strong&gt;&lt;br&gt;
Believe it or not, coding everyday even for a min of 1hr as a start  and working your way to 10 hr or more hours a day as a successful  developer does can really boost your skills in mastering the language . As we know Consistency is very important when you are learning a new language  thus make  a commitment yourself to  to code every day , Committing to coding everyday will really help develop that muscle memory. It may be hard to believe this but try putting into practice what you learn . As the saying goes practice makes perfect .&lt;br&gt;&lt;br&gt;
&lt;strong&gt;2.Surround yourself with those  who code&lt;/strong&gt;&lt;br&gt;
As you learn how  to code in python , learn  to work in a team too , it actually works best when you work together. It is extremely important when you are learning to code in Python that you surround yourself with other people who are learning as well. This will allow you to share the tips and tricks you learn along the way. You can also join the python  developer whatsapp group , slack community or  any other social media developer community to learn and also join python developer  meetup &lt;br&gt;
&lt;strong&gt;3. Teach&lt;/strong&gt; &lt;br&gt;
It is said that the best way to learn something is to teach it. This is true when you are learning Python. There are many ways to do this : writing a technical article of the concept in  python  you learned  and sharing it online .Recording videos in which you explain something you learned and posting it online on youtube or other social media platform . . Each of these strategies will solidify your understanding as well as expose any gaps in your understanding.&lt;br&gt;
&lt;strong&gt;4.Build projects&lt;/strong&gt; &lt;br&gt;
For beginners, there are many small exercises that will really help you become confident with Python . Once you have a solid grasp on basic data structures (strings, lists, dictionaries, sets)  , object oriented programming in python , it's time you start  building simple app in python .The journey of building is truly what will teach you the most , error may come up along the way as you build your app but   Don’t let bugs frustrate you. Instead, embrace these moments with pride,  the bugs and errors you  solve will teach you a lot.&lt;br&gt;
&lt;strong&gt;5.Contribute to open source communities&lt;/strong&gt;&lt;br&gt;
In the open-source model, software source code is available publicly, and anyone can collaborate. There are many Python libraries that are open-source projects and take contributions. Additionally, many companies publish open-source projects. This means you can work with code written and produced by the engineers working in these companies. Contributing to open source projects is an extremely valuable way to learn through experience. Let's say you clone an open source project on your local machine, fix some bugs or even add some functionality and push your request . the project manager will see your change and even pull the request and Boom you're getting noticed . &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>python</category>
      <category>devops</category>
      <category>100daysofcode</category>
    </item>
    <item>
      <title>Introduction to Data Structures and Algorithms With Python</title>
      <dc:creator>Amina Ali</dc:creator>
      <pubDate>Sun, 20 Feb 2022 17:37:31 +0000</pubDate>
      <link>https://dev.to/aminaali/introduction-to-data-structures-and-algorithms-with-python-1686</link>
      <guid>https://dev.to/aminaali/introduction-to-data-structures-and-algorithms-with-python-1686</guid>
      <description>&lt;h2&gt;
  
  
  Data structure
&lt;/h2&gt;

&lt;p&gt;Data structure is  a specialized means of organizing and storing data in computers in such a way that we can perform operations on the stored data more efficiently&lt;/p&gt;

&lt;h2&gt;
  
  
  Algorithm
&lt;/h2&gt;

&lt;p&gt;is a step-by-step procedure for solving a problem in a finite amount of time with finite amount of effort(resources).&lt;br&gt;
What is an efficient algorithm :One whose function's values are small, or grow slowly compared to a growth in the size of the input.  &lt;/p&gt;
&lt;h2&gt;
  
  
  Types of Data structure
&lt;/h2&gt;

&lt;p&gt;Python has implicit support for Data Structures which enable you to store and access data. These structures are called list , Dictionary , sets and tuples &lt;br&gt;
Python also  allows its users to create their own Data Structures enabling them to have full control over their functionality . The most prominent Data Structures are &lt;br&gt;
&lt;strong&gt;Stack&lt;/strong&gt;,&lt;strong&gt;Queue&lt;/strong&gt;, &lt;strong&gt;Tree&lt;/strong&gt;, &lt;strong&gt;Linked List&lt;/strong&gt; , &lt;strong&gt;graph **and **hash tables&lt;/strong&gt; .&lt;/p&gt;
&lt;h2&gt;
  
  
  1. List
&lt;/h2&gt;

&lt;p&gt;To represent a sequence of items indexed by their integer position, one data structure you can use is a list. Lists contain zero or more elements and can contain elements of different types. List is a mutable ordered sequence of element mutable meaning  that you can add, delete, or change elements in a flexible manner&lt;br&gt;
&lt;strong&gt;Access list items:&lt;/strong&gt;&lt;br&gt;
List elements are accessed by the assigned index.Starting index of the list is 0 and the ending index is n-1 where n is the number of elements.&lt;br&gt;
&lt;em&gt;students[0] _gets the first element in a list &lt;br&gt;
_students[0] = ‘Amina'&lt;/em&gt; changes a list item by offset.&lt;br&gt;
&lt;em&gt;students[0:2] _slices to extract items by offset. This example returns the first 2 elements of students.&lt;br&gt;
&lt;strong&gt;Add list items:&lt;/strong&gt;&lt;br&gt;
_append() _adds an item to the end of a list.&lt;br&gt;
_extend()&lt;/em&gt; or += merges one list into another.&lt;br&gt;
&lt;em&gt;insert()&lt;/em&gt; adds an item before any offset.&lt;br&gt;
&lt;strong&gt;Remove list items:&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;remove()&lt;/em&gt; removes an item value from a list.&lt;br&gt;
&lt;em&gt;pop()&lt;/em&gt; removes the last (or specified) element while also returning the value.&lt;br&gt;
&lt;em&gt;del&lt;/em&gt; removes an item by its position in the list. del is a Python statement, not a list method.&lt;br&gt;
&lt;em&gt;join()&lt;/em&gt; returns a string of combined list items. The argument for join() is a string or any iterable sequence of strings.&lt;br&gt;
_len() _returns the number of items/length  in the list. &lt;br&gt;
_count() _returns the number of occurrences of a specified value.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#defining  a list 
students = ['sam', 'pam', 'rocky', 'austin', 'steve', 'banner']
#acessing element in a list 
print(students[0])
print(students[-3])
print(students[1:3])

#adding element in a list 
students.append("amina")
print(students)

#deleting element in a list
students.pop(0)
print(students)

#printing the len of the list 
print(len(students))

#join string in a list
name = "-".join(["Jack", "O", "Lantern"])
print(name)

output:
sam
austin
['pam', 'rocky']
['sam', 'pam', 'rocky', 'austin', 'steve', 'banner', 'amina']
['pam', 'rocky', 'austin', 'steve', 'banner', 'amina']
6
Jack-O-Lantern
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2 Dictionaries
&lt;/h2&gt;

&lt;p&gt;Instead of using an offset, dictionaries use keys to associate with each value. This means that order is not tracked and should not matter if you plan to use a dictionary. Dictionary keys are immutable and unique, however, dictionaries are mutable; the key-value elements can be added, deleted, or changed&lt;br&gt;
Create dictionaries using {}. Typecast using dict()&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Access value in dictionary&lt;/strong&gt; &lt;br&gt;
&lt;em&gt;book[‘key’]&lt;/em&gt; gets an item by its key&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Updating value  in a dictionary *&lt;/em&gt;&lt;br&gt;
&lt;em&gt;book['key'] = ‘value' _uses a key to add (or change if it already exists) a value.&lt;br&gt;
_update()&lt;/em&gt; merges the keys and values of one dictionary into another.&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Removing value in a dictionary *&lt;/em&gt;&lt;br&gt;
del deletes an item by the provided key. del is a Python statement, not a dictionary method.&lt;br&gt;
keys() returns all the dictionary keys. values() returns all the values in the dictionary. items() returns all the dictionary key-value pairs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# dictionaries help us store complicated data, which is not single valued like a number or a string
book = {
    'title': "How to be awesome",
    'author': "john doe",
    'isbn': "1234-23-15-12-3",
    'date_published': "23-21-2010",
    'year': 2010}
# access value in a dict
book_title = book['title']
print(book_title)
# update value in a dict
book['title'] = "2020 what went wrong"
print(book["title"])
# get all the keys in this dictionary
keys = book.keys()
print(keys)

#deleting item from dictionary 
del book['isbn']
print (book)

#adding item to dictonary 
book['page']=450
print(book)

#Checking if a Key exists
if "year" in book:
  print("Yes, the keyword exists in the dictionary")
else:
  print('No, the keyword does not exist in the dictionary')

output
How to be awesome
2020 what went wrong
dict_keys(['title', 'author', 'isbn', 'date_published', 'year'])
{'title': '2020 what went wrong', 'author': 'john doe', 'date_published': '23-21-2010', 'year': 2010}
{'title': '2020 what went wrong', 'author': 'john doe', 'date_published': '23-21-2010', 'year': 2010, 'page': 450}
Yes, the keyword exists in the dictionary
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3 Tuples
&lt;/h2&gt;

&lt;p&gt;Tuples are also a sequenced data structure, just like lists. However, tuples are immutable; you cannot add, delete, or change items after a tuple is created. Tuples differ from lists by having many fewer functions because they can’t be modified after being defined. Tuples contain zero or more elements and can contain elements of different, immutable types&lt;br&gt;
Create tuples using () or a comma-separated list of elements with no surrounding brackets or braces. Typecast using tuple().&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Accessing element in a tuples&lt;/strong&gt;&lt;br&gt;
Accessing items in a tuple is similar to a list, we can access elements in a tuple using indexes. We can specify the index value and it will return the item stored at that particular index value.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Concatenating two tuples&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;vector = (4, 5, 9)
#acessing element in  a tuple
print("x-coordinate:", vector[0])
print("y-coordinate:", vector[1])
print("z-coordinate:", vector[2])

location = 108.7774, 92.5556
latitude, longtitude = location
print("The coordinates are {} x {}".format(latitude, longtitude))

output:
x-coordinate: 4
y-coordinate: 5
z-coordinate: 9
The coordinates are 108.7774 x 92.5556
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4.Sets
&lt;/h2&gt;

&lt;p&gt;A set is like a dictionary with only the keys, not the values. This means that sets are unique and not sequential. Sets are also mutable. Sets contain zero or more elements and can contain elements of different, immutable types .Create sets using set(). Typecast using set().&lt;br&gt;
&lt;strong&gt;Operation that can be done in a list&lt;/strong&gt; &lt;br&gt;
&lt;strong&gt;add()&lt;/strong&gt; adds an item to the set if it doesn’t already exist&lt;br&gt;
&lt;strong&gt;remove()&lt;/strong&gt; removes specified  items from the set&lt;br&gt;
&lt;strong&gt;intersect()&lt;/strong&gt; returns an intersection of two sets&lt;br&gt;
&lt;strong&gt;union()&lt;/strong&gt; returns a union of two sets&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;set ={1,2,5, "amina"}
print(set)
#acessing item in a set
for x in set:
  print(x)
#add item in a set
set.add("sandra")
print(set)

#deleting element in set 
set.remove("amina")
print(set)

output:
{1, 2, 5, 'amina'}
1
2
5
amina
{1, 2, 5, 'sandra', 'amina'}
{1, 2, 5, 'sandra'}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. Stack
&lt;/h2&gt;

&lt;p&gt;Stack are linear Data Structures which are based on the principle of Last-In-First-Out (LIFO) where data which is entered last will be the first to be accessed. It is built using the array structure and has operations namely, pushing (adding) elements, popping (deleting) elements and accessing elements only from one point in the stack called the TOP. This TOP is the pointer to the current position of the stack.example :5  is added in to the stack ontop of 4  and while removing you have to start with the top most element which  5  is removed first followed by 4 thus the term  Last-In-First-Out .&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UxgQ6TOs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7mbf9acg8qet43xnckz2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UxgQ6TOs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7mbf9acg8qet43xnckz2.png" alt="Image description" width="292" height="173"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Operation done in stack&lt;/strong&gt; &lt;br&gt;
&lt;strong&gt;empty()&lt;/strong&gt;– Returns whether the stack is empty.&lt;br&gt;
&lt;strong&gt;size()&lt;/strong&gt; – Returns the size of the stack.&lt;br&gt;
&lt;strong&gt;top()&lt;/strong&gt;– Returns a reference to the topmost element of the stack.&lt;br&gt;
&lt;strong&gt;push()&lt;/strong&gt;– Inserts the element ‘a’ at the top of the stack.&lt;br&gt;
&lt;strong&gt;pop()&lt;/strong&gt; – Deletes the topmost element of the stack.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# implementing stack using List :
myStack = []
#adding item to the stack 
myStack.append(10)
myStack.append(100)
myStack.append(1000)
myStack.append(10000)
print("Initial stack is:",myStack)
#removing utem form the list
print(myStack.pop())
print(myStack.pop())
print(myStack.pop())
print("After Removing elements:",myStack)

output:
Initial stack is: [10, 100, 1000, 10000]
10000
1000
100
After Removing elements: [10]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  6. Queues
&lt;/h2&gt;

&lt;p&gt;A queue is also a linear data structure which is based on the principle of First-In-First-Out (FIFO) where the data entered first will be accessed first. It is built using the array structure and has operations which can be performed from both ends of the Queue, that is, head-tail or front-back. Operations such as adding and deleting elements are called En-Queue and Dequeue and accessing the elements can be performed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XpitqkMb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/29u4laapf8s16lpm6k47.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XpitqkMb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/29u4laapf8s16lpm6k47.png" alt="Image description" width="567" height="208"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Operation performed in queues&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;enqueue()&lt;/strong&gt;: Adds an element to the back of queue Q..&lt;br&gt;
&lt;strong&gt;dequeue()&lt;/strong&gt;: Removes and returns the first element from queue Q. Error occurs if empty.&lt;br&gt;
&lt;strong&gt;empty()&lt;/strong&gt;: Returns True if no elements found in queue Q, else returns False&lt;br&gt;
&lt;strong&gt;size()&lt;/strong&gt;: Returns the number of elements in queue Q.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# implementing Queue using List :
queue=[]
queue.append(10)
queue.append(100)
queue.append(1000)
queue.append(10000)
print("Initial Queue is:",queue)
print(queue.pop(0))
print(queue.pop(0))
print(queue.pop(0))
print("After Removing elements:",queue)

output
Initial Queue is: [10, 100, 1000, 10000]
10
100
1000
After Removing elements: [10000]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  7.Linked list
&lt;/h2&gt;

&lt;p&gt;A linked list is a linear data structure, in which the elements are not stored at contiguous memory locations. The elements in a linked list are linked using pointers.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1bRr5oCq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wdvkuomih96134qshepe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1bRr5oCq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wdvkuomih96134qshepe.png" alt="Image description" width="476" height="106"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Operation performed in linked list&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Traversal:&lt;/strong&gt; To traverse all the nodes one after another.&lt;br&gt;
&lt;strong&gt;Insertion&lt;/strong&gt;: To add a node at the given position.&lt;br&gt;
&lt;strong&gt;Deletion:&lt;/strong&gt; To delete a node.&lt;br&gt;
&lt;strong&gt;Searching:&lt;/strong&gt; To search an element(s) by value.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# A single node of a singly linked list
class Node:
  # constructor
  def __init__(self, data = None, next=None): 
    self.data = data
    self.next = next
# A Linked List class with a single head node
class LinkedList:
  def __init__(self):  
    self.head = None 
  # insertion method for the linked list
  def insert(self, data):
    newNode = Node(data)
    if(self.head):
      current = self.head
      while(current.next):
        current = current.next
      current.next = newNode
    else:
      self.head = newNode
  # print method for the linked list
  def printLL(self):
    current = self.head
    while(current):
      print(current.data)
      current = current.next
# Singly Linked List with insertion and print methods
LL = LinkedList()
LL.insert("Lux ")
LL.insert("Tech")
LL.insert("Academy")
LL.printLL()

output:
Lux 
Tech
Academy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>python</category>
      <category>webdeveloper</category>
      <category>coding</category>
      <category>100devs</category>
    </item>
    <item>
      <title>introduction to modern python</title>
      <dc:creator>Amina Ali</dc:creator>
      <pubDate>Sun, 13 Feb 2022 17:40:29 +0000</pubDate>
      <link>https://dev.to/aminaali/introduction-to-modern-python-2jch</link>
      <guid>https://dev.to/aminaali/introduction-to-modern-python-2jch</guid>
      <description>&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  What is python ?
&lt;/h2&gt;

&lt;p&gt;**&lt;br&gt;
Python is an interpreted, general, high-level programming language invented by Guido van Rossum and released in 1991.&lt;/p&gt;

&lt;p&gt;**&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing and setting up python environment
&lt;/h2&gt;

&lt;p&gt;**&lt;br&gt;
&lt;strong&gt;Python installation steps&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Visit &lt;a href="https://www.python.org/downloads/"&gt;https://www.python.org/downloads/&lt;/a&gt;
2.Select your Operating system(Windows,Linux/UNIX,MacOS,Other&lt;/li&gt;
&lt;li&gt;Select the release or version, click on it to download.
4.Double click on the file to execute and install. For window mark "add to system paths" An alternative way to install python on Linux is to run sudo apt install python3 or sudo apt install python on the terminal.&lt;/li&gt;
&lt;li&gt;For more check on the python documentation for more documentations.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Check installed python&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open Terminal on Linux or cmd on windows
** Run the python --version command to check if you  **installed the correct version. if python is installed, the output will be similar to as below:&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Lets run some few code in python
&lt;/h2&gt;

&lt;p&gt;*&lt;em&gt;1.Print() function in python *&lt;/em&gt;&lt;br&gt;
print() in python is a useful built &lt;br&gt;
in function that we can use to display input value as text in the output.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cCuAPG01--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pyxue2axmlp6f1w618dd.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cCuAPG01--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pyxue2axmlp6f1w618dd.PNG" alt="Image description" width="425" height="259"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;2.Variable in python *&lt;/em&gt;&lt;br&gt;
Variables are used to store information to be referenced and manipulated in a computer program.&lt;br&gt;
Creating a new variable in python is very simple, let's create one together, here in this example below the variable name is month, the equal sign is the assignment operator and the value of the variable is 12&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TP65Gqt5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hmt6lkxayn148iunr8xw.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TP65Gqt5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hmt6lkxayn148iunr8xw.PNG" alt="Image description" width="453" height="128"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;3. Data Type in Python *&lt;/em&gt;&lt;br&gt;
 Integers, Floats, Booleans, Strings, Lists, Tuples, Sets, Dictionaries&lt;br&gt;
*&lt;em&gt;Integer *&lt;/em&gt; - these  are whole numbers &lt;br&gt;
*&lt;em&gt;Floats *&lt;/em&gt;- these are Numbers with a decimal point, such as 3.14, are called floating-point numbers (or floats).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XhIAaay5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dj9yxsnwz8opg9ucydai.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XhIAaay5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dj9yxsnwz8opg9ucydai.PNG" alt="Image description" width="700" height="259"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bool -&lt;/strong&gt; Bool is another data type that is commonly used in Python. Bool is short for Boolean which can have a value of either True or False. Boolean algebra is the branch of algebra in which the values of the variables are the truth  values true or false. Boolean algebra uses the framework on which all electronic devices are built and exists fundamentally in every line of code inside a computer. In python we can easily assign boolean values like this: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vWAwqBA---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x74zzpmf8cw0wmblwyjp.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vWAwqBA---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x74zzpmf8cw0wmblwyjp.PNG" alt="Image description" width="374" height="88"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Strings&lt;/strong&gt; - Python has another datatype in its toolkit called as Strings, as the name suggests this data type deals with characters words and text. String is an immutable order of sequences of characters (eg, Letters, numbers, spaces and symbols. We will be explaining what immutable order means later on.You can create a string by using quotes as seen here, you can use either single / double quotes they both work equally well but there are some cases where you might prefer one over the other which we will be discussing below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ykWPS2Mf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vm3kc4lqnq0s9j3r5465.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ykWPS2Mf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vm3kc4lqnq0s9j3r5465.PNG" alt="Image description" width="555" height="223"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lists&lt;/strong&gt; - A list is one of the most common and basic data structures in Python. It is a mutable ordered sequence of elements.The code below defines a variable students which contains a list of strings. Each element in the list is a string that signifies the name of a student.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aODkg2Pd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a819z4mp61472hsdy9da.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aODkg2Pd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a819z4mp61472hsdy9da.PNG" alt="Image description" width="707" height="224"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Dictionaries&lt;/strong&gt; -dictionaries help us store complicated data, which is not single valued like a number or a string&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--LLFLqmi8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9dez6zuckyughpnh20iy.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LLFLqmi8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9dez6zuckyughpnh20iy.PNG" alt="Image description" width="711" height="241"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is python used for ?
&lt;/h2&gt;

&lt;p&gt;Python is the most popular programming  language and is used in &lt;br&gt;
1.Machine learning&lt;br&gt;
2.Software development &lt;br&gt;
3.Software testing prototyping &lt;br&gt;
4.Data science &lt;br&gt;
5.Automation and scripting &lt;/p&gt;

&lt;h2&gt;
  
  
  Advantage of python
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;It has a simple syntax that mimics natural language, so it’s easier to read and understand. This makes it quicker to build projects, and faster to improve on them.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It’s versatile. Python can be used for many different tasks, from web development to machine learning.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It’s beginner friendly, making it popular for entry-level coders.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It’s open source, which means it’s free to use and distribute, even for commercial purposes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Python’s archive of modules and libraries—bundles of code that third-party users have created to expand Python’s capabilities—is vast and growing.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Python has a large and active community that contributes to Python’s pool of modules and libraries, and acts as a helpful resource for other programmers. The vast support community means that if coders run into a stumbling block, finding a solution is relatively easy; somebody is bound to have run into the same problem before.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>python</category>
      <category>programming</category>
      <category>webdev</category>
      <category>datascience</category>
    </item>
  </channel>
</rss>
