<?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: Sharon Chang'ach</title>
    <description>The latest articles on DEV Community by Sharon Chang'ach (@changach).</description>
    <link>https://dev.to/changach</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%2F720509%2F47273bac-6770-4ac2-a8c7-c2366a8c1005.png</url>
      <title>DEV Community: Sharon Chang'ach</title>
      <link>https://dev.to/changach</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/changach"/>
    <language>en</language>
    <item>
      <title>Python for everyone: Mastering Python The Right Way</title>
      <dc:creator>Sharon Chang'ach</dc:creator>
      <pubDate>Sat, 26 Feb 2022 18:51:16 +0000</pubDate>
      <link>https://dev.to/changach/python-for-everyone-mastering-python-the-right-way-45f</link>
      <guid>https://dev.to/changach/python-for-everyone-mastering-python-the-right-way-45f</guid>
      <description>&lt;p&gt;According to Malcolm Gladwell in his blockbuster book “Outliers”,  it takes 10,000 hours of intensive practice to achieve mastery of complex skills and materials. We do have to ask ourselves though what exactly is mastering, and does it mean you have gotten everything?&lt;/p&gt;

&lt;p&gt;We could use this 10,000 hours rule but how exactly do we use it well. First of all, we have to cultivate passion. Learning any language can be hard and without passion, you could easily give up and  stop learning. &lt;br&gt;
Doing thorough learning starting from the basics all the way through to the hard stuff. The job is to learn what  python exactly is then pushing yourself to learn how to use it.&lt;/p&gt;

&lt;p&gt;Just as the saying goes, practice makes perfect. Consistent practice helps you keep your skills sharp and lets you learn new things every time.&lt;/p&gt;

&lt;p&gt;Learning through use of projects is also a great way to learn python. Projects push you to learn more things, some that you wouldn't even know if you were not applying them. It helps sharpen your skills and prepare you for the real world. It also improves critical and creative thinking. It would also help you in identifying what field you are more interested in among the many applications of python.&lt;/p&gt;

&lt;p&gt;Reading books and articles also helps in sharpening your mind. It helps keep you informed on emerging trends and furthermore helps open up your mind.&lt;/p&gt;

&lt;p&gt;There is no shame in getting stuck. You have to normalize not knowing everything. You can source answers from peers or from googling the problems.&lt;/p&gt;

&lt;p&gt;Learning python can be very exciting. Its many applications give a wider range for applications and very diverse projects. Therefore learning it can be quite fun, but challenging as well. This is why one needs to know how to learn it the right way.&lt;/p&gt;

&lt;p&gt;I hope this article helps you get the right way to learn. Happy learning.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Data Structures and Algorithms</title>
      <dc:creator>Sharon Chang'ach</dc:creator>
      <pubDate>Sun, 20 Feb 2022 21:03:14 +0000</pubDate>
      <link>https://dev.to/changach/data-structures-and-algorithms-239e</link>
      <guid>https://dev.to/changach/data-structures-and-algorithms-239e</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;A data structure is a data organization, management, and storage format that enables efficient access and modification. It shows the relationships among the data, and the functions or operations that can be applied to the data. Algorithms on the other hand are a set of instructions that solve a problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Data Structures
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;sets&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;lists&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;stacks&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;linked lists&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;queues&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;dictionaries&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Trees&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Sets
&lt;/h2&gt;

&lt;p&gt;A set is an unordered collection of unique elements. This means that it does not allow duplication.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;basket={'apple', 'eggs', 'banana', 'orange'}
same =set(['apple', 'eggs', 'banana', 'orange'])
print(basket==same)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Lists
&lt;/h2&gt;

&lt;p&gt;A list is a container data type that stores a sequence of elements. This means that it allows different types of elements in the list.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;List = [1, 2, 3, "GFG", 2.3]
print(List)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[1, 2, 3, 'GFG', 2.3]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Stacks
&lt;/h2&gt;

&lt;p&gt;Think of a loading books into a box. Books are loaded one by one and the first one in becomes the last one when the loading is done. This is basically the working of a stack as well.&lt;br&gt;
The functions in a stack are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;empty() – prints out whether the stack is empty.&lt;/li&gt;
&lt;li&gt;size() – prints out the number of elements in the stack.&lt;/li&gt;
&lt;li&gt;top() – prints out the topmost element.&lt;/li&gt;
&lt;li&gt;append() – Inserts the element at the top of a stack.&lt;/li&gt;
&lt;li&gt;pop() – Deletes the topmost element.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;stack=[3]
stack.append(42)
stack.append(12)
stack.pop()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;12,42,3
12
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;It is a linear data structure, in which the elements are not stored at contiguous memory locations. &lt;/p&gt;

&lt;h2&gt;
  
  
  Queues
&lt;/h2&gt;

&lt;p&gt;Consider a line in a bank. The first person is at the front of the line and as people join, they are added from the rear. This is basically what a queue is. The structure reduces from the front.&lt;br&gt;
Commands:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Enqueue: Adds an item to the queue.&lt;/li&gt;
&lt;li&gt;Dequeue: Removes an item from the queue.&lt;/li&gt;
&lt;li&gt;Front: prints out the front item from queue&lt;/li&gt;
&lt;li&gt;Rear: prints out the last item from queue &lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Dictionaries
&lt;/h2&gt;

&lt;p&gt;It is a useful data structure for storing (key, values) pairs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Creating a Dictionary
Dict = {'Name': 'Geeks', 1: [1, 2, 3, 4]}
print("Creating Dictionary: ")
print(Dict)

# accessing a element using key
print("Accessing a element using key:")
print(Dict['Name'])

# accessing a element using get()
# method
print("Accessing a element using get:")
print(Dict.get(1))

# creation using Dictionary comprehension
myDict = {x: x**2 for x in [1,2,3,4,5]}
print(myDict)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Creating Dictionary: 
{'Name': 'Geeks', 1: [1, 2, 3, 4]}
Accessing a element using key:
Geeks
Accessing a element using get:
[1, 2, 3, 4]
{1: 1, 2: 4, 3: 9, 4: 16, 5: 25}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Trees
&lt;/h2&gt;

&lt;p&gt;A tree is a  hierarchical data structure.&lt;br&gt;
There are two types of trees:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Binary Search Tree&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Red Black Trees&lt;br&gt;
It has several functions which include:&lt;br&gt;
Traversal, search, insertion, deletion and update.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Functions in data structures
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Insertion&lt;br&gt;
It is the addition of elements in the data structures.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Deletion&lt;br&gt;
It is the removal of elements from the data structures&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Update&lt;br&gt;
It is when an element is changed in the data structures.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Search&lt;br&gt;
It is where an element is searched in the data structure.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>python</category>
      <category>algorithms</category>
    </item>
    <item>
      <title>Python 101:Ultimate Guide To Python</title>
      <dc:creator>Sharon Chang'ach</dc:creator>
      <pubDate>Sun, 13 Feb 2022 18:12:09 +0000</pubDate>
      <link>https://dev.to/changach/python-101ultimate-guide-to-python-4jp4</link>
      <guid>https://dev.to/changach/python-101ultimate-guide-to-python-4jp4</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;If you can learn something new everyday, you can teach something new everyday.                                     -Martha Stewart&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  What Exactly is python?
&lt;/h1&gt;

&lt;p&gt;Developed in 1991 by Guido Van Rossum, python is an interpreted high level programming language.&lt;br&gt;
I know what you're thinking, why would I learn this when there are so many other languages out there? Well, here are a few reasons why you should start learning it now:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It is simple and easy to learn syntax&lt;/li&gt;
&lt;li&gt;It has automatic garbage collection&lt;/li&gt;
&lt;li&gt;No more semicolons!&lt;/li&gt;
&lt;li&gt;Huge amount of libraries&lt;/li&gt;
&lt;li&gt;Is interpreted&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To learn more about python, we will do a fun project :)&lt;/p&gt;

&lt;h2&gt;
  
  
  What Disney princess would you be?
&lt;/h2&gt;

&lt;p&gt;Have you ever wondered what disney princess you would be? Let's find out.&lt;br&gt;
After creating a new file on your preferred text editor, proceed to write this code:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;prompt user to enter name and introduce them to the program.&lt;br&gt;
&lt;code&gt;name= input("What is your name? \n")&lt;br&gt;
print("Hello "+name+ " Do you ever wonder what disney character you would be? FIND OUT TODAY!")&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;main question for the user&lt;br&gt;
&lt;code&gt;# questions to help user identify traits&lt;br&gt;
trait = input("What is your favorite color? pink,blue,yellow or green \n ").lower&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Sequence of if statements to determine the best character&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if trait =="pink":
    ans=input("Do you like adventure? y or n: \n").lower
    if ans=="y":
        print("Hello Rapunzel")
    else:
            print("hello Sleeping Beauty")
if trait == "yellow":
    ans2= input("Would you consider yourself brave? y or n: \n").lower
    if ans2=="y":
       ans3= input("Would you die for anyone? y or n: \n").lower
       if ans3=="y":
           print("hello Moana")
if trait=="blue":
    ans4=input("Would you consider yourself confident? y or n: \n").lower
    ans6=input("Would you consider yourself hardworking? y or n: \n ").lower
    ans7=input("would you consider yourself a leader? y or n: \n").lower
    if ans7=="yes":
        print("Hello Elsa")
    elif ans6=="y":
        print("Hello Snow White")
    elif ans4=="y":
        print("Hello Snow White")

if trait =="green":
    ans8=input("Would you consider yourself a princess? y or n: \n").lower
    if ans8=="n":
        print("Hello Tiana")
    else:
        ans9=input("Would you consider yourself a girly girl? y or n: \n").lower
        if ans9=="n":
            print("Hello Mulan")
        else:
            ans10=input("Do you have a great singing voice? y or n:\n ")
            if ans10=="y":
                print("Hello Ariel")
            else:
                print("Hello Merida")

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

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;The full code will look like this:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;name= input("What is your name? \n")
print("Hello "+name+ " Do you ever wonder what disney character you would be? fIND OUT TODAY!")
# questions to help user identify traits
trait = input("What is your favorite color? pink,blue,yellow or green \n ").lower

if trait =="pink":
    ans=input("Do you like adventure? y or n: \n").lower
    if ans=="y":
        print("Hello Rapunzel")
    else:
            print("hello Sleeping Beauty")
if trait == "yellow":
    ans2= input("Would you consider yourself brave? y or n: \n").lower
    if ans2=="y":
       ans3= input("Would you die for anyone? y or n: \n").lower
       if ans3=="y":
           print("hello Moana")
if trait=="blue":
    ans4=input("Would you consider yourself confident? y or n: \n").lower
    ans6=input("Would you consider yourself hardworking? y or n: \n ").lower
    ans7=input("would you consider yourself a leader? y or n: \n").lower
    if ans7=="yes":
        print("Hello Elsa")
    elif ans6=="y":
        print("Hello Snow White")
    elif ans4=="y":
        print("Hello Snow White")

if trait =="green":
    ans8=input("Would you consider yourself a princess? y or n: \n").lower
    if ans8=="n":
        print("Hello Tiana")
    else:
        ans9=input("Would you consider yourself a girly girl? y or n: \n").lower
        if ans9=="n":
            print("Hello Mulan")
        else:
            ans10=input("Do you have a great singing voice? y or n:\n ")
            if ans10=="y":
                print("Hello Ariel")
            else:
                print("Hello Merida")




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

&lt;/div&gt;



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