<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shifa Nabillah Utami on Medium]]></title>
        <description><![CDATA[Stories by Shifa Nabillah Utami on Medium]]></description>
        <link>https://medium.com/@shifanabillah.u?source=rss-45768024d801------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*VA02HOkYoPV6pW1Z75JGwQ.jpeg</url>
            <title>Stories by Shifa Nabillah Utami on Medium</title>
            <link>https://medium.com/@shifanabillah.u?source=rss-45768024d801------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:26:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shifanabillah.u/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Getting to know Python’s variables, data types, and operators]]></title>
            <link>https://medium.com/@shifanabillah.u/getting-to-know-pythons-variables-data-types-and-operators-ddb01337deab?source=rss-45768024d801------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddb01337deab</guid>
            <category><![CDATA[variables]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Shifa Nabillah Utami]]></dc:creator>
            <pubDate>Sat, 07 Jan 2023 15:16:30 GMT</pubDate>
            <atom:updated>2023-01-07T15:22:00.823Z</atom:updated>
            <content:encoded><![CDATA[<p>Previously, I made a post about an introduction to python, you can <a href="https://medium.com/@shifanabillah.u/introduction-to-python-c3cbc1137893">click this </a>if you care to visit. Now, on to the next step, let’s discuss variables, data types, and operators.</p><p>We can consider the variable is like a container. We could store values like numbers, alphabet, or even sentences. We could also put a name on it, for example, we could name it “age” or “body_heights”. Why is using variables in python necessary? We need to store values in variables because we have a lot of calculations to store. By using variables, it can be easily remembered when creating large programs, it can easily read programs that have been created in the past, and even facilitate collaboration with others. Now, how do we create variables in python?</p><p>You could just write something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*EKDJADZqDhGzRh7wA-lazA.png" /></figure><p>= is an assignment. So basically, the number 24 is assigned to age.</p><p>There are several rules for writing variables:</p><p>1. Variable names cannot contain spaces.</p><p>2. Variable must start with a letter or underscore symbol.</p><p>3. Variable names cannot contain symbols anywhere except underscores.</p><p>4. Variables in Python are case sensitive</p><p>5. Using snake case writing style.</p><p>Let’s move on to the data types. What values can be stored in python?</p><p>1. <strong>Float</strong> is a number with a decimal</p><p>e.g., 167.3 cm for body_heights and 36.7 C for body_temprature</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*SLVR4FImhT_rVD4dsJBRvQ.png" /></figure><p>2. <strong>Integers</strong> such as the numbers 1,2,3,4</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*B6MCBepapRJl_q88pPdfBg.png" /></figure><p>3. <strong>Strings</strong> are words or sentences.</p><p>We can store the sentence in a variable. E.g., greeting = “welcome to wonderland!”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*vLyxBVvM5ryx-Vazm70iKA.png" /></figure><p>4. <strong>Boolean</strong> indicates the condition is true or false</p><p>e.g., 5&gt;1 result is true</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*rFWtEmmy6Q2Zu1cHmnz1pg.png" /></figure><p>Back to variables, using variables can be a time saving, instead of writing like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*8aGWffbzHEZYovjKONzcdQ.png" /></figure><p>we can write easier like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*OxTqFN5950oY1GFsoa_iiQ.png" /></figure><p>It is much easier, especially when you are working with extensive data. And then, what if I want to find the value of the brand variable? How do we retrieve the variable? There are two ways to retrieve variables. You can just type the variable name,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*fzCsQ-cQ_wL4d5E1vT1ElA.png" /></figure><p>or you can use the print feature.</p><p>But the problem with the first feature is that you can’t use it when it’s in the middle of a sandwich position like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*E425qifI5o6hUmA6FifpiQ.png" /></figure><p>Because python operates line-by-line basis and from left to right basis, that’s why the variable laptop_brand doesn’t show up. But if we use the print feature, even if we put it in the middle, it’s still worked!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*ZMEfxZpQ_8a06Rdau3jKng.png" /></figure><p>We can also operate variables like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*RY_8vFKfu5IsaJhGl1LlqQ.png" /></figure><p>Or something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*4jbwGdyG40Ggydbfigw2Jg.png" /></figure><p>Let’s move forward to “what operations can I do in python?”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*9l6KFOactRx7FIrnAE6RIw.png" /></figure><p>You can also use operations like integer division and modulus.</p><p>In Python, we can perform floor division (also sometimes known as integer division) using the // operator. This operator will divide the first argument by the second and round the result down to the nearest whole number, making it equivalent to the math.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*TZ-KtbEdNJUDlnB2ibOmEA.png" /></figure><p>What about modulus? It’s the other part of the answer for integer division. It’s the remainder. Remember in grade school you would say, “Eleven divided by four is two remainders three.” In many programming languages, the symbol for the modulus operator is the percent sign (%).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*_re98bEsoN6D_btF5dsaOA.png" /></figure><p>We can perform a comparison operation to check the comparison between 2 values. Here are some examples. Usually, it returns as a Boolean</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*U93jrfxYzXyNhYQICemmrQ.png" /></figure><p>Then, besides checking the similarity between numbers, we can also check the similarity between two strings. Suppose I have two sentences. Is this statement equal or not?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*wEqbVGWgXWZDgFzeW766eg.png" /></figure><p>Well. Turns out it’s not equal.</p><p>Now, you understand why variable naming is essential. You also know about Python data types and operators. Yeah, you are getting much more prepared to become a data scientist!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddb01337deab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to basic Python]]></title>
            <link>https://medium.com/@shifanabillah.u/introduction-to-python-c3cbc1137893?source=rss-45768024d801------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3cbc1137893</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[basic-python]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Shifa Nabillah Utami]]></dc:creator>
            <pubDate>Sat, 31 Dec 2022 13:32:33 GMT</pubDate>
            <atom:updated>2022-12-31T13:35:08.846Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction to basic Python</strong></p><p>Okay, we all know that in this 21st century, data has been massively produced. As simple as your smart compact phone can produce huge and various data, they’ll tell you where you are, where you’ve been, or even how many steps you produced in one day. However, if it is not analyzed properly, it will be meaningless. From the data steps itself, your phone can tell you that you’re not exercising enough, or even they can tell you what your fitness age is. Studying data science is important because it’s enabling us to analyze data and gain insight from it, as well as (hopefully) add good problem-solving skills.</p><p>One of the tools that can be used for data analysis is python. We can use a calculator analogy. When you’re using a calculator, you add the numbers and operations to produce the calculation you want. It’s equivalent to programming language, you write the code and then you execute them. They’ll give the desired results. (Below is an example from the calculator):</p><p>1+1 is an input. The combination of number and operation (+) is an expression.</p><p>= button is equivalent to execute</p><p>2 is an output. The results from the input.</p><p>And this is an example on python. The play button is the button to execute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*QGvV03By32IdFLO1_O4pOA.png" /></figure><p>Here’s another example of python with words (other than numbers), you can ask python to print your desired outcomes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*PGRbaR4XzSC2BWYeeXE9DA.png" /></figure><p>Moreover, we can also write more than one code in one cell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*f_d4zsGry_eltFOIiYORAA.png" /></figure><p>Python will process the code on a line-by-line basis, starting from above.</p><p>Can python process everything? No, they can’t process everything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*QXjuxBm3lS8amRd_a2AzpQ.png" /></figure><p>Hahahahahaha is not defined because I didn’t add an order or add meaning to it. That’s why it came up as an error because python doesn’t know what hahahahahaha means.</p><p>It can also add a comment by using #</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*7OGOywJKJS6O6JyD2f0ixg.png" /></figure><p>Surely, you can do much more than a simple calculation with python. I hope this post can help you to give a proper introduction to python.</p><p>“The journey of a thousand miles begins with one step.”</p><p>Good luck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3cbc1137893" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>