<?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 Sarah Azzahwa on Medium]]></title>
        <description><![CDATA[Stories by Sarah Azzahwa on Medium]]></description>
        <link>https://medium.com/@gimailat?source=rss-8cc8ba2f9d0e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*DNJnd6kBlBN2bx8A</url>
            <title>Stories by Sarah Azzahwa on Medium</title>
            <link>https://medium.com/@gimailat?source=rss-8cc8ba2f9d0e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 21:08:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gimailat/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[Unlearning to Learning : Creating my first 2D numpy array !]]></title>
            <link>https://medium.com/@gimailat/unlearning-to-learning-creating-my-first-2d-numpy-array-0a0e65e524fb?source=rss-8cc8ba2f9d0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a0e65e524fb</guid>
            <category><![CDATA[2d-numpy-array]]></category>
            <category><![CDATA[numpy-array]]></category>
            <category><![CDATA[python-numpy-array]]></category>
            <dc:creator><![CDATA[Sarah Azzahwa]]></dc:creator>
            <pubDate>Sun, 01 Nov 2026 12:32:14 GMT</pubDate>
            <atom:updated>2026-11-01T12:32:14.025Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H-VTmgRFHwxz2uvD7d2a1Q.png" /><figcaption>my datacamp versus my personal IDLE</figcaption></figure><p>Tonight my DataCamp exercise was “Baseball data in 2D form.” The data is a list of lists with the height and weight of 1015 MLB players, and the task was to turn it into a 2D NumPy array called np_baseball and print its shape.</p><p>On DataCamp, the baseball list is loaded in the background, so I never saw it. It’s just there. But IDLE on my own computer has no idea what baseball is, so I had to <strong>copy and paste the whole list from DataCamp into IDLE myself</strong>. A list of 1015 players, pasted by hand. And of course, that’s where all the trouble started lol.</p><p>As a resulttt, on DataCamp, the answer came out as (1015, 2). Whilee, I did the same thing in my personal IDLE, as I always do, and got (1, 1015, 2). !!!! THERE IS DIFFERENCE MEANS SOMETHING IS WRONG !!!</p><h3>Going beyond the exercise</h3><p>Getting the answer right/same answer on DataCamp didn’t feel like enough, because my own computer disagreed with it. So these steps were taken :</p><p><strong>Reading the clue.</strong> I already knew that (1015, 2) means 1015 rows and 2 columns. So (1, 1015, 2) meant NumPy saw <strong>three</strong> dimensions: one block, containing 1015 rows, of 2 columns each. My data wasn’t a list of players. It was a list that contained one list of players.</p><p><strong>Finding the cause.</strong> When I printed np_baseball, IDLE showed [[[ 74 180] at the start and [ 73 195]]] at the end. DataCamp showed only two brackets on each side. My paste had one extra pair of brackets, which wrapped everything in another layer. It’s the same kind of slip I made earlier with height_in, when I typed [[ instead of [.</p><p><strong>The fix.</strong> I copied the list again, this time making sure the brackets were right. The shape became (1015, 2), exactly like DataCamp.</p><p><strong>A second error along the way.</strong> Before it worked, I also got NameError: name &#39;np&#39; is not defined. I had run np.array(baseball) before running import numpy as np. Python only knows the name np after the import has run, and every new IDLE session needs it again, lol I AM SO IMPATIENTT</p><h3>Takeaways</h3><ol><li><strong>Check the </strong><strong>shape after loading data.</strong> One line, print(np_baseball.shape), caught a mistake that would have quietly changed every later result. Nothing raised an error, so only the number told me something was off.</li><li><strong>Extra brackets mean extra dimensions.</strong> Every layer of [ ] around the data adds a dimension. The shape shows how many layers there are.</li><li><strong>Hand-pasted data is easy to get wrong.</strong> The mistake wasn’t in my code or my understanding. It was in how the data got into IDLE.</li><li><strong>Compare your output with a trusted one.</strong> Running the exercise in two places is what exposed the problem. If I had only used DataCamp, I would never have noticed.</li></ol><p>Cannot wait for the next exercise of 🐍 !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a0e65e524fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlearning to Learning : Creating 2-dimensional numpy array]]></title>
            <link>https://medium.com/@gimailat/unlearning-to-learning-creating-2-dimensional-numpy-array-7869b10c13d8?source=rss-8cc8ba2f9d0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7869b10c13d8</guid>
            <category><![CDATA[2d-numpy-array]]></category>
            <dc:creator><![CDATA[Sarah Azzahwa]]></dc:creator>
            <pubDate>Thu, 08 Oct 2026 13:01:28 GMT</pubDate>
            <atom:updated>2026-10-08T13:01:28.442Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hsXCx-LMVsEN-Lry44tZ8A.png" /><figcaption>My very first 2D np array yeay</figcaption></figure><p>Tonight my DataCamp session introduced me to the 2D NumPy array. The exercise gave me a small list of lists with the height and weight of 4 baseball players, and asked me to turn it into an array with np.array(). Then print its type and its shape.</p><p>Easy enough, so I did it in DataCamp first and then repeated everything in IDLE. Both gave the same results: the type is &lt;class &#39;numpy.ndarray&#39;&gt; and the shape is (4, 2).</p><h3>Going beyond the exercise</h3><p>Getting the answer right didn’t feel like enough, so I kept poking at it in IDLE.</p><p><strong>Reading the shape.</strong> (4, 2) means 4 rows and 2 columns. In this case, 4 players, and 2 measurements for each. The order is always rows first, then columns, never the other way around.</p><p><strong>A small mistake of mine.</strong> In my own comment I wrote that baseball is “a list of two lists”. Wrong. It is a list of <strong>four</strong> lists, and each of those lists has two numbers. The “two” belongs to each row, not to the main list.</p><p><strong>The </strong><strong>type() surprise.</strong> I expected the type to say something about 2D, but it is the same numpy.ndarray as a 1D array. What separates 1D from 2D is the shape, not the type.</p><h3>Takeaways from this session</h3><ol><li><strong>shape is rows first, then columns.</strong> (4, 2) means 4 rows and 2 columns. When I read it backwards, I misread the data.</li><li><strong>len(), </strong><strong>shape and </strong><strong>size answer different questions.</strong> len() counts the rows, shape gives rows and columns, and size counts every number.</li><li><strong>Writing my own comments more carefully next time.</strong> I wrote the wrong description of baseball and only caught it when I looked at the data again. Being precise with words matters just as much as being precise with code.</li></ol><p>Cannot wait for the next exercise of 🐍 !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7869b10c13d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlearning to Learning : Subsetting Numpy Array]]></title>
            <link>https://medium.com/@gimailat/unlearning-to-learning-subsetting-numpy-array-2574ddda4e49?source=rss-8cc8ba2f9d0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2574ddda4e49</guid>
            <category><![CDATA[numpy-array]]></category>
            <category><![CDATA[subsetting]]></category>
            <dc:creator><![CDATA[Sarah Azzahwa]]></dc:creator>
            <pubDate>Wed, 07 Oct 2026 14:25:38 GMT</pubDate>
            <atom:updated>2026-10-07T14:25:38.433Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PVT-aJax53BeQ8bA8sQeow.png" /><figcaption>Subestting a numpy arry by calling out some indexes</figcaption></figure><p>Tonight, I just finished a DataCamp exercise on subsetting NumPy arrays. The exercise runs in the datacamp window panel, however I also wanted to do the same thing on my own computer, in IDLE, just to see whether I really understood it. The data is the height and weight of 1,015 MLB players.</p><p>Similar with list, subsetting an array uses the same square-bracket syntax as a list. Two details tripped me up before they clicked:</p><ul><li><strong>The end of a slice is not included.</strong> [100:111] returns index 100 up to 110, which is 11 values. The length of a slice is just end - start.</li><li><strong>Index counting starts at 0</strong>, so [50] is actually the 51st player.</li></ul><p>After excercising those two np array, Claude also suggested me to try the command of “len”, to count how many data element that i have inside my np array. I found that both arrays have 1,015 values, one weight and one height per player. That also gives me the last valid index: 1015 - 1 = 1014. Asking for index 1015 would fail because it doesn&#39;t exist.</p><h3>Skills I practiced tonight</h3><ul><li>For starters, always Moving a problem from the datacamp windows browser to my own environment (IDLE inside my personal Mac) and getting the same results !</li><li>Converting a list to a NumPy array</li><li>Selecting a single element and a range with brackets and slices</li><li>Using len() to check the size of data</li></ul><p>Yeay ! That’s the wrap up everyone!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2574ddda4e49" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Revisiting my Physics Rabbit Holes: Day 1 where Questioning the Circumference of Earth to Build a…]]></title>
            <link>https://medium.com/@gimailat/revisiting-my-physics-rabbit-holes-day-1-where-questioning-the-circumference-of-earth-to-build-a-94acd865d81a?source=rss-8cc8ba2f9d0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/94acd865d81a</guid>
            <category><![CDATA[christopher-columbus]]></category>
            <category><![CDATA[eratosthenes]]></category>
            <category><![CDATA[introduction-to-physics]]></category>
            <dc:creator><![CDATA[Sarah Azzahwa]]></dc:creator>
            <pubDate>Tue, 06 Oct 2026 14:14:45 GMT</pubDate>
            <atom:updated>2026-10-06T14:14:45.009Z</atom:updated>
            <content:encoded><![CDATA[<h3>Revisiting my Physics Rabbit Holes: Day 1 where Questioning the Circumference of Earth to Build a Physicist’s Mindset</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p65Ec3_LG59SCfWxr7i3Zw.png" /></figure><p><strong>Back to physics, and began it with a weirdly specific question</strong></p><p>I recently decided to get back into learning physics from scratch, started an “Intro to Physics” online free course, and landed on Lesson 1a: <em>Circumference of the Earth</em>.</p><p>My first reaction was honestly: why? Why does a physics course open with proving the Earth is round, instead of something like motion or forces? It felt like a strange yet unnecessary content to learn before the “real” content even started.</p><p><strong>The answer: it’s not about the Earth, it’s about the mindset of being a true physicist</strong></p><p>Turns out the whole point of starting here isn’t the Earth’s shape itself. Through Claude brainstorming, I learned a story of Eratosthenes that wants to measure the Earth’s circumference (~240 BC). This kind of history taught me one of the cleanest, lowest-math examples of <em>how a physicist actually thinks</em>. I MEAN IMAGINE IN THAT ERA???? He only used a stick, a shadow, and the distance between two cities, Syene and Alexandria, and got a surprisingly accurate number for the size of the entire planet. No calculus, no instruments, just geometry and reasoning.</p><p>However, that story is really a vehicle for teaching me a five-step cycle: <strong>observation → assumption → model → measurement → conclusion.</strong></p><ul><li><strong>Observation</strong>: something catches your attention, usually because it’s slightly “off.” Eratosthenes heard that in Syene, sunlight could reach the bottom of a well at a specific time of year (meaning the sun was directly overhead), while in Alexandria, on that same day, a vertical stick still cast a shadow. That inconsistency was the spark.</li><li><strong>Assumption</strong>: a belief you state openly so it can be challenged. Eratosthenes assumed the Earth was a sphere, and that sunlight arrives in parallel rays (because the sun is so far away).</li><li><strong>Model</strong>: built <em>on top of</em> the assumption. He connected the shadow angle in Alexandria to the angle at the Earth’s center between the two cities, using basic geometry.</li><li><strong>Measurement</strong>: not theoretical, actually measuring the shadow’s angle (~7°) and the real distance between the cities (~800 km).</li><li><strong>Conclusion</strong>: Earth’s circumference ≈ 40,000 km. Startlingly close to the real value (~40,075 km).</li></ul><p><strong>Testing it on myself: “will I be late for work?”</strong></p><p>To make sure I actually understood the cycle (not just recognized the words), I asked CLAUDE to take an example of something completely mundane: me, a civil servant in Jakarta, trying not to be late.</p><ul><li><strong>Observation: </strong>some days I’m fine, some days I’m late lol.</li><li><strong>Question/hypothesis to test: </strong>what’s actually causing it, traffic, train schedules, or weather?</li><li><strong>Supporting observations: </strong>Mondays and the start of the month are worse (crowds commuting together), rainy days are bad regardless of the day, school holidays somehow mean I’m never late.</li><li><strong>Conclusion of that smaller cycle:</strong> traffic volume is the dominant factor, not the train or the rain specifically.</li><li><strong>That conclusion gets promoted into an assumption for the next, bigger cycle: “the root cause is road traffic.”</strong></li><li>From there, build a <strong>model</strong>: travel time = base time + traffic penalty.</li><li><strong>Measure</strong> it for real: leave at different times for a few weeks and log the results.</li><li><strong>Conclude</strong>: e.g., “leaving by 6:40 gets me there on time 90% of the time.”</li></ul><p>Before understanding more about how Eratosthenes could build his model, I also asked Claude how can something had to make him curious enough to pay attention like this???? And Claude propose me that there are a handful of recurring triggers behind most scientific observations so far in our world. I mean it is important to know what kind of things that can inspire you, before you can even start building a model, something has to make you curious enough to pay attention. So far Claude offers me a set of handful of recurring triggers behind most observations, and running them through my own “trying not to be late” situation :</p><ol><li><strong>Something doesn’t match expectations.</strong> “Wait, that’s weird.” Like leaving at the exact same time as usual, but suddenly hitting way worse traffic than normal, with no obvious reason why.</li><li><strong>A pattern keeps repeating.</strong> Noticing that Mondays and the start of the month are consistently worse commutes, while rainy days are bad regardless of what day it is. Once something repeats enough times, I will start asking what’s actually driving it.</li><li><strong>Practical necessity.</strong> I am not investigating my commute out of pure curiosity, I am doing it because getting docked for being late actually matters to me. Most real-world observation starts from a need, not idle interest.</li><li><strong>Two explanations conflict.</strong> Maybe I believe it’s mostly the traffic, but a coworker insists it’s really about which train that I catch. Since both can’t be fully true at once, then I pushed to actually check the data instead of just guessing.</li><li><strong>A new tool reveals something previously invisible.</strong> Once you start using a maps app that shows live traffic conditions, you suddenly see congestion patterns you never would’ve noticed just by looking out the car window. New visibility, new questions.</li></ol><p>And personally, out of these five, #2 (“a pattern keeps repeating”) is the one that hits closest to home as a policy analyst, since I keep noticing the same dynamic showing up across completely different sectors, which is usually the first sign there’s a shared underlying mechanism worth digging into, rather than something unique to any one sector.</p><p><strong>The tangent nobody expected: Christopher Columbus</strong></p><p>This is where my brainstorming session went sideways in the best way. I was asking about Eratosthenes’s number, and somehow ended up questioning something I’d just accepted as fact my whole life: <strong>that medieval people believed the Earth was flat until Columbus “proved” otherwise in 1492.</strong> Turns out I was wrong. The “Earth is round” fact had been established science since ancient Greece, roughly 1,700 years before Columbus. I later learned the myth is largely traced to a 19th-century fictionalized biography by Washington Irving.</p><p>What actually surprised me was learning what Columbus got wrong wasn’t the <em>shape</em> of the Earth, it was the <em>size</em>. He underestimated Earth’s circumference by around 25–28%, believing it was roughly 18,000 miles around instead of the real ~24,900 miles. Apparently he cherry-picked the smallest available degree estimates (instead of using Eratosthenes’s more accurate figure) because a smaller Earth made his <strong>“sail west to reach Asia” pitch look far more feasible to potential funders.</strong></p><p>And yes, I mean “funders” literally, I couldn’t stop picturing Columbus pitching this voyage like a startup founder pitching investors. What got me was finding out Portugal’s royal court, which had some of the best navigators in Europe at the time, rejected his proposal because their own experts, working from better math, calculated the real distance was roughly four times longer than Columbus claimed. He got turned down by Portugal, then England and France, before Spain finally funded him in 1492, partly for political reasons (competing with Portugal for trade dominance) rather than because his numbers actually checked out.</p><p>Of course, there was no Asia at the distance he calculated, there was an entire unknown continent in the way, which I realized is the only reason the expedition didn’t end in his crew starving at sea. I also didn’t know Columbus himself died in 1506 still insisting he’d reached Asia, which apparently is also why Indigenous peoples of the Americas got mislabeled “Indians.”</p><p>The part that genuinely shocked me was his track record as a colonial administrator, forced labor, brutal punishments, and mismanagement so severe that the Spanish crown eventually had him arrested and shipped home in chains in 1500. A sharp, persuasive founder who turned out to be a terrible operator. I did not expect a physics lesson to end here.</p><p><strong>The takeaway</strong></p><p>What started as me asking “why does this course start with the Earth’s circumference” ended up teaching me a genuinely useful framework: observation → assumption → model → measurement → conclusion isn’t just a science-class ritual, it’s a transferable way I can stress-test my own beliefs, including stuff like “why am I always late for work,” or “is this policy pattern I keep noticing actually a pattern, or just a coincidence.”</p><p>And apparently, it’s also a framework that explains a surprising amount of 15th-century geopolitics. I did not see that coming tonight. Ahh cannot wait to learn more chapter about my Physics Rabbit Hole next time !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94acd865d81a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlearning to Learning : Differentiate List and Numpy Array]]></title>
            <link>https://medium.com/@gimailat/unlearning-to-learning-differentiate-list-and-numpy-array-bb9c82d4aaea?source=rss-8cc8ba2f9d0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb9c82d4aaea</guid>
            <category><![CDATA[python-list]]></category>
            <category><![CDATA[numpy-array]]></category>
            <dc:creator><![CDATA[Sarah Azzahwa]]></dc:creator>
            <pubDate>Tue, 06 Oct 2026 12:10:54 GMT</pubDate>
            <atom:updated>2026-10-06T12:10:54.097Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kJMC3dAThMTscOvOgp-w6A.png" /><figcaption>One problem set to test whether i already new how powerful np array is</figcaption></figure><p>Tonight my datacamp session taught me how to run NumPy so that I can dive into the difference between a Python list and a NumPy array. They look almost identical, but they behave very differently.</p><p>So as you can see, DataCamp exercise that taught me this (“NumPy Side Effects”) by asking me to pick the code that gives the same output as np.array([True, 1, 2]) + np.array([3, 4, False]).</p><p>My first instinct was to pick np.array([True, 1, 2, 3, 4, False]), because it looked like the two arrays put together. But then, I was wrong. Instead of guessing again, I copied every option into IDLE and compared the outputs</p><p>So after I tried every option in IDLE and compared the outputs, as you can see in my IDLE screen, that was more useful than guessing. So based on the output that I run for each option, for sure I choose the option np.array([4, 3, 0]) + np.array([0, 2, 2]).</p><h3>Going beyond the exercise</h3><p>Getting the answer right didn’t feel like enough, so I kept experimenting in IDLE to test my own understanding by using the guidelines from CLAUDE. I predicted each result before running it. Here is what i tried to excercise based on my own initiative :</p><p><strong>Multiplication.</strong> You can see I used command linde for [1, 2] * 2 was [2, 4], which is actually the NumPy result.</p><p><strong>Checking the data type.</strong> I also wanted to see the “one array, one type” rule for myself, so I used the command .dtype. I also made a typo (dtupe) and Python suggested the fix itself (&quot;Did you mean: &#39;dtype&#39;?&quot;).</p><p><strong>Breaking it on purpose.</strong> Once the array became text, I tried math on it and of course it failed lol. Each error message names the data types involved, such as dtype(&#39;&lt;U21&#39;) next to dtype(&#39;int64&#39;). That told me exactly why the operation failed.</p><h3>Takeaways</h3><p>Tonight I learned that a Python list and a NumPy array look alike but has two differences.</p><ol><li><strong>Data types: a list can mix, an array can’t. </strong>A list holds any mix of data types, like [1, &quot;a&quot;, True]. A NumPy array holds one type only. If you mix them, NumPy quietly converts everything to a common type. For example, np.array([1, 2, &quot;a&quot;]) turns the numbers into text (&lt;U21), and then math on it fails. Checking it by using the command of .dtype works pretty well.</li><li><strong>Executing the math Operators: a list joins and repeats, an array calculates. </strong>Because every element in an array has the same type, NumPy can do math on all of them at once. That is why it’s a core tool for data science.</li></ol><p>Tonight’s lesson was small: a list and a NumPy array are not the same thing. The habit behind it is what I want to keep, which is to be curious, test things myself, and not be afraid of getting the first answer wrong.</p><p>Cannot wait into the next exercise of 🐍 !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb9c82d4aaea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlearning to Learning : how to create numpy array from a very very long list]]></title>
            <link>https://medium.com/@gimailat/unlearning-to-learning-how-to-create-numpy-array-from-a-very-very-long-list-3e8552acf81a?source=rss-8cc8ba2f9d0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e8552acf81a</guid>
            <category><![CDATA[numpy-array]]></category>
            <category><![CDATA[python-numpy-array]]></category>
            <dc:creator><![CDATA[Sarah Azzahwa]]></dc:creator>
            <pubDate>Sun, 04 Oct 2026 10:51:53 GMT</pubDate>
            <atom:updated>2026-10-04T10:51:53.284Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wmUde7uIhi0viYeJZGHJyg.png" /></figure><p>Today I was working through DataCamp’s <em>Introduction to Python</em> course. The exercise was called “Baseball players’ height,” and it looked simple: convert baseball players’ heights from inches to meters.</p><p><strong>First question: where is the list?</strong></p><p>What confused me was that nowhere in the code was height_in actually created inside the DATACAMP practice windw, so that the code still ran. It turns out DataCamp loads that variable behind the scenes before running our code. That&#39;s why the instructions say height_in &quot;is already available.&quot;</p><p>So I went the scrappy route. My first instinct was to go to the original source, the SOCR UCLA MLB heights dataset that DataCamp credits. I found it, stared at the giant table, and gave up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t5LymZkyCbcOtvmFpc9rHA.png" /></figure><p>Then it hit me: the data was already sitting in DataCamp. I just couldn’t see it. So I typed print(height_in) into DataCamp&#39;s IPython Shell, and there it was, the full list of over a thousand numbers. I copied the output and pasted it straight into IDLE. Not elegant, but it worked.</p><p>Of course, pasting it in wasn’t the end of the story. My first attempt threw a SyntaxError: unterminated string literal. A stray quotation mark had sneaked in with the copy-paste, and Python thought I&#39;d started a piece of text and never finished it.</p><p>Then I made another rookie mistake. I wrote height_in = on one line and put the opening [ on the next. Python reads height_in = on its own as an unfinished statement, so it had no idea what I was trying to do. The fix was simple: keep the [ on the same line as the =. Once the bracket is open, the numbers can wrap across as many lines as they want, and Python will keep reading until it finds the closing ].</p><p>After cleaning that up, the list finally went in. I even left myself a little comment in the shell to celebrate: #yeay success making list manually lol.</p><p>Then, from there, it was the same steps as the DataCamp exercise, just typed line by line in IDLE:</p><p>np_height_in = np.array(height_in)<br>print(np_height_in)</p><p>np_height_m = np_height_in * 0.0254<br>print(np_height_m)</p><p>Exactly the same as on DataCamp. Same numbers, same ... in the middle, same result, but this time on my own machine, with data I&#39;d prepared myself.</p><p>It felt more satisfying than just clicking Submit. Now I knew where the data came from, why it “just worked” on DataCamp, and what it actually takes to set it up on your own.</p><p><strong>Why use an array instead of a list?</strong></p><p>With everything working, I had one more question: should I convert np_height_m back into a regular list? The answer: usually not. Arrays are simply more practical for working with data.</p><p>With an array, arrays are also much faster on large datasets and work directly with functions like np.mean() and np.max().</p><p>But i ask claude and it said that it is possible to convert back to a list with command .tolist(). My takeaway: an array is the tool you work with, and a list is the format you hand things off in. Secondly, my biggest takeaway is that re-doing an exercise outside the datacamp platform (for example in my own IDLE inside my personal laptop) forces you to understand every step, not just the part I’ve been asked to write.</p><p>And just incase<br>lemme copy paste the long height in inches list lol :</p><p>height_in =[74, 74, 72, 72, 73, 69, 69, 71, 76, 71, 73, 73, 74, 74, 69, 70, 73, 75, 78, 79, 76, 74, 76, 72, 71, 75, 77, 74, 73, 74, 78, 73, 75, 73, 75, 75, 74, 69, 71, 74, 73, 73, 76, 74, 74, 70, 72, 77, 74, 70, 73, 75, 76, 76, 78, 74, 74, 76, 77, 81, 78, 75, 77, 75, 76, 74, 72, 72, 75, 73, 73, 73, 70, 70, 70, 76, 68, 71, 72, 75, 75, 75, 75, 68, 74, 78, 71, 73, 76, 74, 74, 79, 75, 73, 76, 74, 74, 73, 72, 74, 73, 74, 72, 73, 69, 72, 73, 75, 75, 73, 72, 72, 76, 74, 72, 77, 74, 77, 75, 76, 80, 74, 74, 75, 78, 73, 73, 74, 75, 76, 71, 73, 74, 76, 76, 74, 73, 74, 70, 72, 73, 73, 73, 73, 71, 74, 74, 72, 74, 71, 74, 73, 75, 75, 79, 73, 75, 76, 74, 76, 78, 74, 76, 72, 74, 76, 74, 75, 78, 75, 72, 74, 72, 74, 70, 71, 70, 75, 71, 71, 73, 72, 71, 73, 72, 75, 74, 74, 75, 73, 77, 73, 76, 75, 74, 76, 75, 73, 71, 76, 75, 72, 71, 77, 73, 74, 71, 72, 74, 75, 73, 72, 75, 75, 74, 72, 74, 71, 70, 74, 77, 77, 75, 75, 78, 75, 76, 73, 75, 75, 79, 77, 76, 71, 75, 74, 69, 71, 76, 72, 72, 70, 72, 73, 71, 72, 71, 73, 72, 73, 74, 74, 72, 75, 74, 74, 77, 75, 73, 72, 71, 74, 77, 75, 75, 75, 78, 78, 74, 76, 78, 76, 70, 72, 80, 74, 74, 71, 70, 72, 71, 74, 71, 72, 71, 74, 69, 76, 75, 75, 76, 73, 76, 73, 77, 73, 72, 72, 77, 77, 71, 74, 74, 73, 78, 75, 73, 70, 74, 72, 73, 73, 75, 75, 74, 76, 73, 74, 75, 75, 72, 73, 73, 72, 74, 78, 76, 73, 74, 75, 70, 75, 71, 72, 78, 75, 73, 73, 71, 75, 77, 72, 69, 73, 74, 72, 70, 75, 70, 72, 72, 74, 73, 74, 76, 75, 80, 72, 75, 73, 74, 74, 73, 75, 75, 71, 73, 75, 74, 74, 72, 74, 74, 74, 73, 76, 75, 72, 73, 73, 73, 72, 72, 72, 72, 71, 75, 75, 74, 73, 75, 79, 74, 76, 73, 74, 74, 72, 74, 74, 75, 78, 74, 74, 74, 77, 70, 73, 74, 73, 71, 75, 71, 72, 77, 74, 70, 77, 73, 72, 76, 71, 76, 78, 75, 73, 78, 74, 79, 75, 76, 72, 75, 75, 70, 72, 70, 74, 71, 76, 73, 76, 71, 69, 72, 72, 69, 73, 69, 73, 74, 74, 72, 71, 72, 72, 76, 76, 76, 74, 76, 75, 71, 72, 71, 73, 75, 76, 75, 71, 75, 74, 72, 73, 73, 73, 73, 76, 72, 76, 73, 73, 73, 75, 75, 77, 73, 72, 75, 70, 74, 72, 80, 71, 71, 74, 74, 73, 75, 76, 73, 77, 72, 73, 77, 76, 71, 75, 73, 74, 77, 71, 72, 73, 69, 73, 70, 74, 76, 73, 73, 75, 73, 79, 74, 73, 74, 77, 75, 74, 73, 77, 73, 77, 74, 74, 73, 77, 74, 77, 75, 77, 75, 71, 74, 70, 79, 72, 72, 70, 74, 74, 72, 73, 72, 74, 74, 76, 82, 74, 74, 70, 73, 73, 74, 77, 72, 76, 73, 73, 72, 74, 74, 71, 72, 75, 74, 74, 77, 70, 71, 73, 76, 71, 75, 74, 72, 76, 79, 76, 73, 76, 78, 75, 76, 72, 72, 73, 73, 75, 71, 76, 70, 75, 74, 75, 73, 71, 71, 72, 73, 73, 72, 69, 73, 78, 71, 73, 75, 76, 70, 74, 77, 75, 79, 72, 77, 73, 75, 75, 75, 73, 73, 76, 77, 75, 70, 71, 71, 75, 74, 69, 70, 75, 72, 75, 73, 72, 72, 72, 76, 75, 74, 69, 73, 72, 72, 75, 77, 76, 80, 77, 76, 79, 71, 75, 73, 76, 77, 73, 76, 70, 75, 73, 75, 70, 69, 71, 72, 72, 73, 70, 70, 73, 76, 75, 72, 73, 79, 71, 72, 74, 74, 74, 72, 76, 76, 72, 72, 71, 72, 72, 70, 77, 74, 72, 76, 71, 76, 71, 73, 70, 73, 73, 72, 71, 71, 71, 72, 72, 74, 74, 74, 71, 72, 75, 72, 71, 72, 72, 72, 72, 74, 74, 77, 75, 73, 75, 73, 76, 72, 77, 75, 72, 71, 71, 75, 72, 73, 73, 71, 70, 75, 71, 76, 73, 68, 71, 72, 74, 77, 72, 76, 78, 81, 72, 73, 76, 72, 72, 74, 76, 73, 76, 75, 70, 71, 74, 72, 73, 76, 76, 73, 71, 68, 71, 71, 74, 77, 69, 72, 76, 75, 76, 75, 76, 72, 74, 76, 74, 72, 75, 78, 77, 70, 72, 79, 74, 71, 68, 77, 75, 71, 72, 70, 72, 72, 73, 72, 74, 72, 72, 75, 72, 73, 74, 72, 78, 75, 72, 74, 75, 75, 76, 74, 74, 73, 74, 71, 74, 75, 76, 74, 76, 76, 73, 75, 75, 74, 68, 72, 75, 71, 70, 72, 73, 72, 75, 74, 70, 76, 71, 82, 72, 73, 74, 71, 75, 77, 72, 74, 72, 73, 78, 77, 73, 73, 73, 73, 73, 76, 75, 70, 73, 72, 73, 75, 74, 73, 73, 76, 73, 75, 70, 77, 72, 77, 74, 75, 75, 75, 75, 72, 74, 71, 76, 71, 75, 76, 83, 75, 74, 76, 72, 72, 75, 75, 72, 77, 73, 72, 70, 74, 72, 74, 72, 71, 70, 71, 76, 74, 76, 74, 74, 74, 75, 75, 71, 71, 74, 77, 71, 74, 75, 77, 76, 74, 76, 72, 71, 72, 75, 73, 68, 72, 69, 73, 73, 75, 70, 70, 74, 75, 74, 74, 73, 74, 75, 77, 73, 74, 76, 74, 75, 73, 76, 78, 75, 73, 77, 74, 72, 74, 72, 71, 73, 75, 73, 67, 67, 76, 74, 73, 70, 75, 70, 72, 77, 79, 78, 74, 75, 75, 78, 76, 75, 69, 75, 72, 75, 73, 74, 75, 75, 73]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e8552acf81a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlearning to Learning : Installing and importing numpy into my python !]]></title>
            <link>https://medium.com/@gimailat/unlearning-to-learning-installing-and-importing-numpy-into-my-python-1c80935dde0f?source=rss-8cc8ba2f9d0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c80935dde0f</guid>
            <category><![CDATA[numpy-array]]></category>
            <category><![CDATA[python-numpy-array]]></category>
            <dc:creator><![CDATA[Sarah Azzahwa]]></dc:creator>
            <pubDate>Thu, 01 Oct 2026 15:19:02 GMT</pubDate>
            <atom:updated>2026-10-01T15:19:02.439Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_F5sHPRmU2EjYzypXDK1ZQ.png" /><figcaption>Installing and importing numpy package !</figcaption></figure><p>So finally ! The class of <em>Introduction to Python</em> course on my DataCamp account is arriving in this chapter “NUMPY” LOL ! Fyi, 6 years ago I was stuck in this chapter since I cannot install it in my own laptop and it made me sad and I choose to give up lol.</p><p>NumPy, a package that almost every data scientist uses. But instead of only coding in the browser that datacamp provided for its student, I wanted NumPy running on my own Mac too. Here’s how it went.</p><p>As you can see in my terminal, I’m on Python 3.13. Next, I made a project folder on my Desktop and created a virtual environment inside it. A virtual environment is like a separate, clean box for each project, so packages I install don’t mess with the rest of my system. (anw i followed step by step from this guy’s youtube ! His video is very helpful ! <a href="https://www.youtube.com/watch?v=VdQRobLo_7o">https://www.youtube.com/watch?v=VdQRobLo_7o</a>) . Through his youtube video, he said that once Numpy is activated, (numpy_venv) appeared at the start of my Terminal prompt and you can see a folder popped up in my desktop lol !</p><p>Well this is the missing step that I didnt do 6 years ago ! I wanted to practice in IDLE, Python’s built-in editor. Turning out, the trick is I ONLY NEED to launch it <em>from inside</em> the virtual environment, so it can see the NumPy I just installed using this command :</p><p>python3 -m idlelib</p><p>Six years ago, I kept opening IDLE from Launchpad instead, after I finish installing the numpy. So it would use the system Python and complain that NumPy doesn’t exist.</p><p>Soo, after successfully installing Numpy, i focused on executing the practice set from datacamp. Firstly, they ask me to import the numpy package through the command “import numpy as np”. It is the previous skill that i learn from the previos chaper : how to import. Then, I created a list of baseball players’ heights in centimeters and I was asked to turn it into a NumPy array using a simple command “np_baseball =np.array(baseball)”.</p><p>After succesfully creating my first ever Numpy Array, I tried to play with my Numpy array just to prove what Hugo had said during the introduction video about Numpy such as the differences between list and numpy array, how to operate the numpy array, etc.</p><p>That’s why you can see in my several last lines in IDLE, i was having fun to excercise with list “baseball” and also with my numpy array “np_baseball” lol ! Getting it wrong and then seeing the real answer taught me more than reading about it would have. Through this chapter, I can conclude that Lists are containers for storing data while NumPy arrays are built for <em>calculating</em> with data. That’s the whole reason NumPy exists, and now I understand why it shows up in every data science tutorial.</p><p>Yeay such a productive session for tonight !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c80935dde0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlearning to Learning : How to do selective import in Python Module]]></title>
            <link>https://medium.com/@gimailat/unlearning-to-learning-how-to-do-selective-import-in-python-module-96f480c4cf14?source=rss-8cc8ba2f9d0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/96f480c4cf14</guid>
            <category><![CDATA[python-math]]></category>
            <category><![CDATA[selective-import]]></category>
            <dc:creator><![CDATA[Sarah Azzahwa]]></dc:creator>
            <pubDate>Tue, 29 Sep 2026 13:44:03 GMT</pubDate>
            <atom:updated>2026-09-29T13:44:03.859Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DksVErVmRp9C7ZkcH7S24g.png" /><figcaption>learning how to do ‘selective import’ in math package</figcaption></figure><p>Hello everyone ! Tonight I learned about how to do ‘<strong>selective import’</strong> in Python. This skill of importing just one specific piece from learning session of a package instead of the whole thing. So this session begins with a simple command &#39;from math import pi&#39;.</p><p>For practice session in the datacamp, I worked through an exercise calculating the <strong>circumference</strong> and <strong>area</strong> of a circle using pi from the math package. Instead of writing math.pi every time, I used selective import skill, that will let me call it directly — pi instead of math.pi — which made the formulas read almost exactly like the actual math notation (2πr and πr²).</p><p>After doing this excercise, I did a little brainstorming with Claude AI, and I just found out that this is <strong>only one</strong> of <strong>5 different ways</strong> to import a module in Python! I was surprised actually that there are:</p><ol><li><strong>Regular import</strong> → for example the command of import math (imports the whole package, usually a module that is already built in inside python)</li><li><strong>Selective import</strong> → from math import pi (imports just one part, no prefix needed)</li><li><strong>Import with an alias</strong> → import numpy as np (imports the whole package but gives it a shorter nickname, and usually this is third party outsider of python!)</li><li><strong>Selective import with an alias</strong> → from math import pi as PI (rare, used to avoid naming conflicts)</li><li><strong>Import everything</strong> → from math import * (imports everything at once — but risky because it can silently overwrite variable names, so it&#39;s usually avoided)</li></ol><p>So nice excercise for tonight !!! Cannot wait to practice the other 4 skills to import modules in python !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96f480c4cf14" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlearning to Learning : Introduction to My first Pyhton Package ever — math.pi *lol]]></title>
            <link>https://medium.com/@gimailat/unlearning-to-learning-introduction-to-my-first-pyhton-package-ever-math-pi-lol-1a9d13d19398?source=rss-8cc8ba2f9d0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a9d13d19398</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python-beginner]]></category>
            <category><![CDATA[python-math-package]]></category>
            <dc:creator><![CDATA[Sarah Azzahwa]]></dc:creator>
            <pubDate>Mon, 28 Sep 2026 14:29:58 GMT</pubDate>
            <atom:updated>2026-09-28T14:29:58.076Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello math.pi !</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NcLs6S4pxVAhMIgOmYW-mQ.png" /><figcaption>My first pyhton package ever, math.pi</figcaption></figure><p>Tonight, I learn about a very simple python package, math.pi. In the introduction video, Hugo talks how the previous chapter about function and methods develops into the collection of packages and modules. I guess this is the part where things in Python are getting complicated and where all of these “pythonista data science ninjas” start to flex their skills to each other hahaa.</p><p>So i guess? If you are that good, you can create your own module/package by building and collecting all of python modules and functions to solve some problems right? And so after you create that perfect module/package, you will be so proud share it to the whole world esp the other pythonistas just to show off “Hey broh, look at my module/package ! It is short module/package you will ever see, but it can solve the problem as effective as it can be !”</p><p>Lol.</p><p>AHAHAHAHA I mean I could vividly remember my old days when I took the class of Physics Computer and all of the exam questions were to build the line of codes in order to solve the physics problems. And the shorter the code lines you can submit to the proff, the more A+ you can get hahahaha.</p><p>So tonight, Hugo through datacamp, introduce us to the most basic Python package which is math.pi. I guess it was the simplest as I dont need to extra hussle to instal anything in my Mac just to import this package in my IDLE window. And the practice session was so simple as well where we test out the package to calculate the area and circumference of a circle.</p><p>Yeay cannot wait to make my own module/package soon !</p><p>#becoming a pythonista data science ninja lol</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a9d13d19398" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlearning to Learning : Another session about List Methods (3 methods : Append, Remove and…]]></title>
            <link>https://medium.com/@gimailat/unlearning-to-learning-another-session-about-list-methods-3-methods-append-remove-and-dd7babd81d55?source=rss-8cc8ba2f9d0e------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd7babd81d55</guid>
            <dc:creator><![CDATA[Sarah Azzahwa]]></dc:creator>
            <pubDate>Sun, 27 Sep 2026 09:08:48 GMT</pubDate>
            <atom:updated>2026-09-27T09:08:48.491Z</atom:updated>
            <content:encoded><![CDATA[<h3>Unlearning to Learning : Another session about List Methods (3 methods : Append, Remove and Reverse)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bi3ZEZyu_GFJSpv6mfKClA.png" /><figcaption>Last session of List Methods in Datacamp</figcaption></figure><p>Okaay, so in this session, I learned about three methods which are : append, remove and also reverse.</p><ol><li>Append.</li></ol><p>Okay, Append is one of method that can be used to add a new element to our data list that contain of float type. Frankly speaking, I just knew that ‘append’ is literally meaning from a verb of append. I though it was an abbreviation of a word in english vocabularies lol. So during the excercise in IDLE, i tried to add two elements to the ‘areas’ list which are24.5 and 15.45.</p><p>2. Remove.</p><p>Second list method is remove, as easy to remember, this method is used for deleting any component data from your list. And as you can see, eventhough the instruction in datacamp does not require me to delete any data, i tried to practice this method by deleting the data of 11.25. Later, I still add the 11.25 by using the append method.</p><p>3. Reverse.</p><p>Last method that I practice with called ‘reverse’. This list method is used to change the whole order of your data series.</p><p>Well , after practicing two section of list method for float data type (index, count, append, remove, and reverse), I would say these methods have few significant differences with functions. For straters, methods really depends on the list data directly and also the type of data inside the list. While function, I would say is more independent.</p><p>And I also learn that “list” is referred to the name of a ‘forum’ or the ‘glass’ we created to accomodate the whole dataset.</p><p>And that’s all for today !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd7babd81d55" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>