<?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 Widyawardany on Medium]]></title>
        <description><![CDATA[Stories by Widyawardany on Medium]]></description>
        <link>https://medium.com/@widyaw920?source=rss-2decb86dceb9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*q5rvCZV6gUy9vD6U</url>
            <title>Stories by Widyawardany on Medium</title>
            <link>https://medium.com/@widyaw920?source=rss-2decb86dceb9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 16:32:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@widyaw920/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[Python 101: Variable, Data Type, and Operator in Python]]></title>
            <link>https://medium.com/@widyaw920/python-101-variable-data-type-and-operator-in-python-9b0214427502?source=rss-2decb86dceb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b0214427502</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[variables-in-python]]></category>
            <category><![CDATA[variables]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Widyawardany]]></dc:creator>
            <pubDate>Sun, 01 Jan 2023 02:32:50 GMT</pubDate>
            <atom:updated>2023-01-01T02:32:50.083Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Variable</strong></blockquote><p>Variable is a named place to save value in Python. You can simply create a variable by assigning the value with “=” (operator assignment) as shown below.</p><pre>variablename = value</pre><p><strong><em>Things to consider when creating variables:</em></strong><br>1. Variable names can not contain spaces<br>2. Variables start with a letter or underscore<br>3. Variables can not start with numbers<br>4. Variables can not contain any symbols anywhere except the underscore<br>5. Variables in Python are case sensitive (pay attention to the upper and lower cases)<br>6. Python uses snake case writing style (recommended to use lowercase and if the variable name contain more than 1 word then use underscore)</p><p><strong><em>TIPS!</em></strong><em> C</em>reate variable names that are easy to understand so that they are easy to remember and make it easier when collaborating with others</p><blockquote><strong>Data Types</strong></blockquote><p>There are 4 simple data types which can be value of variable:<br>1. Float: number with decimals<br>2. Integer: a whole number<br>3. String: sentence<br>4. Boolean: use to represent the truth values of the expressions and represent one of the 2 values i.e. True or False.</p><pre>var_float=3.75<br>var_integer=3<br>var_string=&quot;Hello World&quot;<br>var_boolean=True</pre><p><strong><em>How to Create Variables</em></strong><br>You can assign the value to a variable with “=” as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*z8xplipOzdLpeZaiOX5-5w.png" /></figure><p><strong><em>How to Call the Value of Variable</em></strong><br>You can use “print” command to call the value of a variable. If you don’t use “print” command, so Python will only run the last code in the cell. Here is the difference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*ym978VeZH0_iLuWIDnzmSw.png" /><figcaption>(1) Python only run the last command in cell (height). The output shows 170, the value of height.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*Lfr0KQl8cgzg8IBlkOEHbw.png" /><figcaption>(2) If you use “print” command, the result will be 2 row. The first is 20 as the output of “print(age)” and the second is 170 as the output of “print(height)”.</figcaption></figure><blockquote><strong>What Can We Do with Variables?</strong></blockquote><ol><li>Operations<br>The latest value we assign to age is 20. So, when we input age plus 10 then the result will be 30 which come from 20+10. As shown below.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*k5vSVcke3ti2SoL1uK2_WA.png" /></figure><p><strong><em>Operations can be done in Python:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d6mtWHewD50sFc0SdxOntg.png" /><figcaption>and so many more..</figcaption></figure><p>2. Create new variables from the existing variables<br>Let’s say we create gap retirement year by substracting the maximum of retirement year by the current age. As shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*MxijqCqaPml6GTxlAX9_UA.png" /><figcaption>The output means it will retire 35 years to go.</figcaption></figure><p>3. Integer division and modulo operations<br>Let’s say we have 7 divided by 3, the result is 2 remain 1.<br>2 is the <em>integer division</em>, meanwhile 1 is the <em>modulo</em>.<br>Symbols in Python: “//” is for integer division and “%” is for modulo</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tq_UBCY_jHnGFODf-lzeiQ.png" /></figure><p>4. Check comparisons between 2 values</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9FOgFaJkUIt6vlq_6u2N2A.png" /></figure><p>We can also check the similarities between strings</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lbfkpILbOEhCjMwvFgUU1w.png" /></figure><p>Hope it helps! I’m open to any discussions, do let me know if you have any!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b0214427502" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Science: Python Basic]]></title>
            <link>https://medium.com/@widyaw920/data-science-python-basic-77b2114b27d1?source=rss-2decb86dceb9------2</link>
            <guid isPermaLink="false">https://medium.com/p/77b2114b27d1</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[data-analytics]]></category>
            <dc:creator><![CDATA[Widyawardany]]></dc:creator>
            <pubDate>Thu, 29 Dec 2022 02:24:12 GMT</pubDate>
            <atom:updated>2022-12-29T02:24:12.567Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Why Data Science?</strong></blockquote><p>Along with the development of technology and a business, the data and information that is created every day is also increasingly massive. So, to store and process this massive data requires “Data Science”, a science that uses programming concepts and tools from computer science with calculations based on mathematics and statistics. By learning data science, we will be able to analyze, gain insight from the data, and increasing our problem solving skill. So that the data can be used as <em>“the new oil”</em>, not only provided in numbers but can be used to explore something new other than just reporting. Apart from that, we can use this data to forecast something and tell about what challenges the business will be face in the future.</p><blockquote><strong>Python: Basic Programming Language</strong></blockquote><p>In a simple way: <strong>write the code (input)&gt;&gt; execute&gt;&gt; result(output)</strong></p><p><strong>What python can do?</strong><br>1. Python can do simple calculations</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*m2T3gX0-a0RpBxK7oZmWMA.png" /><figcaption>python will show “5” as the output</figcaption></figure><p>2. In just one cell, we can write more than one code and python will execute it line by line from the beginning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*OeKdFQMqAZWlW3z66EKwYg.png" /></figure><p>3. Python is unable to execute code if the code is invalid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bkoSdM3fOZpDQ_H1TLbBAg.png" /></figure><p>4. We can add comments to help other people can easily read and understand the code by adding hashtags before sentences. So the sentence after the hashtag will not be executed by python.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h2H_B4gjUMPaEhRegCu74Q.png" /></figure><p>I’m open to any discussion, do let me know!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77b2114b27d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>