<?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"><channel><title><![CDATA[Saja Med Tech]]></title><description><![CDATA[Saja Med Tech]]></description><link>https://blog.sajamedtech.com</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 02:16:26 GMT</lastBuildDate><atom:link href="https://blog.sajamedtech.com/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Understanding Strings: The Building Blocks of Text in Python]]></title><description><![CDATA[Welcome to Episode 7 of The Medical Coder’s Path!
In Episode 6, we introduced Python data types and provided a general overview of collections like lists, tuples, and dictionaries. Now, in Episode 7, we’ll begin exploring each data type one by one, s...]]></description><link>https://blog.sajamedtech.com/understanding-strings-the-building-blocks-of-text-in-python</link><guid isPermaLink="true">https://blog.sajamedtech.com/understanding-strings-the-building-blocks-of-text-in-python</guid><category><![CDATA[Python]]></category><category><![CDATA[Strings]]></category><category><![CDATA[medical]]></category><category><![CDATA[healthcare]]></category><dc:creator><![CDATA[Saja Ahmed]]></dc:creator><pubDate>Fri, 22 Aug 2025 13:33:28 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1755869423688/b41cb7ba-d996-4065-9553-f1289e724607.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Welcome to <strong>Episode 7</strong> of <em>The Medical Coder’s Path</em>!</p>
<p>In Episode 6, we introduced <strong>Python data types</strong> and provided a general overview of collections like lists, tuples, and dictionaries. Now, in Episode 7, we’ll begin exploring <strong>each data type one by one</strong>, starting with <strong>Strings</strong>.</p>
<h3 id="heading-objective">🎯 Objective</h3>
<p>By the end of this episode, learners will understand:</p>
<ul>
<li><p>What a <strong>string</strong> is in Python.</p>
</li>
<li><p>How to create and store strings.</p>
</li>
<li><p>The <code>len()</code> Function in Python</p>
</li>
<li><p>Common <strong>string operations</strong> (concatenation, indexing, and slicing).</p>
</li>
</ul>
<p>Let’s get started!</p>
<hr />
<h2 id="heading-what-a-string-is-in-python">What a <strong>string</strong> is in Python</h2>
<p>In Python, a <strong>string</strong> is a sequence of characters, which can include letters, numbers, or symbols, enclosed in either <strong>single quotes</strong> (<code>'...'</code>) or <strong>double quotes</strong> (<code>"..."</code>). These quotes are known as delimiters. A <strong>delimiter</strong> is a character that indicates where a string begins and ends in Python.</p>
<p>📌 Example (healthcare context):</p>
<pre><code class="lang-python">patient_name = <span class="hljs-string">"Ahmed Ali"</span>
diagnosis = <span class="hljs-string">"Hypertension"</span>
hospital_id = <span class="hljs-string">"CH12345"</span>
hospital = <span class="hljs-string">'City Hospital'</span>
</code></pre>
<p>Python can tell us what kind of data we’re dealing with by using the <code>type()</code> function.</p>
<p>Example:</p>
<pre><code class="lang-python">patient_name = <span class="hljs-string">"Ahmed Ali"</span>
print(type(patient_name))
</code></pre>
<p>Output:</p>
<pre><code class="lang-javascript">&lt;<span class="hljs-class"><span class="hljs-keyword">class</span> '<span class="hljs-title">str</span>'&gt;</span>
</code></pre>
<p>This shows that the variable <code>patient_name</code> is of the type <strong>string</strong> (<code>str</code>).</p>
<h3 id="heading-strings-vs-string-literals">Strings vs. String Literals</h3>
<ul>
<li><strong>String</strong>: In Python, a string is a data type used to represent text. When we call something a <em>string</em>, it means the stored value is text.<br />  <strong>String literal</strong>: This refers to the exact characters you write in your code to create a string. For example, <code>"Mohamed Omer"</code> is a <strong>string literal</strong>, the quotes and text you type. When stored in a variable, like <code>patient_name = "Mohamed Omer"</code>, the value of <code>patient_name</code> is a <strong>string</strong>.</li>
</ul>
<p>👉 In short:</p>
<pre><code class="lang-javascript"><span class="hljs-built_in">String</span> Literal → <span class="hljs-string">"Mohamed Omer"</span>  (what you write <span class="hljs-keyword">in</span> code <span class="hljs-keyword">with</span> quotes)
<span class="hljs-built_in">String</span>         → Mohamed Omer    (the actual stored text)
</code></pre>
<hr />
<h2 id="heading-the-len-function-in-python">The <code>len()</code> Function in Python</h2>
<p>In Python, the <code>len()</code> function is used to find the <strong>length</strong> of a string, which is the total number of characters it contains, including spaces and symbols.</p>
<p>This is very useful in healthcare settings, for example, when checking if a patient ID or medical record number has the correct length.</p>
<h3 id="heading-example-1-simple-string">🩺 Example 1: Simple String</h3>
<pre><code class="lang-python">patient_name = <span class="hljs-string">"Ahmed Ali"</span>
print(len(patient_name))
</code></pre>
<p><strong>Output:</strong></p>
<pre><code class="lang-javascript"><span class="hljs-number">9</span>
</code></pre>
<p>👉 The string <code>"Ahmed Ali"</code> has <strong>9 characters</strong> (including the space between Ahmed and Ali).</p>
<h3 id="heading-example-2-patient-id">🩺 Example 2: Patient ID</h3>
<pre><code class="lang-python">patient_id = <span class="hljs-string">"MRN12345"</span>
print(len(patient_id))
</code></pre>
<p><strong>Output:</strong></p>
<pre><code class="lang-javascript"><span class="hljs-number">8</span>
</code></pre>
<p>👉 The patient ID has <strong>8 characters</strong>, which can be checked to ensure it matches the required format.</p>
<h3 id="heading-example-3-empty-string">🩺 Example 3: Empty String</h3>
<pre><code class="lang-javascript">note = <span class="hljs-string">""</span>
print(len(note))
</code></pre>
<p><strong>Output:</strong></p>
<pre><code class="lang-javascript"><span class="hljs-number">0</span>
</code></pre>
<p>👉 An empty string has a length of <strong>0</strong>.</p>
<p>✅ <strong>Key Takeaway:</strong></p>
<ul>
<li><p><code>len()</code> counts every character, including spaces, numbers, and symbols.</p>
</li>
<li><p>It helps you <strong>validate input</strong> (e.g., ensuring a password, patient ID, or report isn’t too short or too long).</p>
</li>
</ul>
<hr />
<h2 id="heading-multiline-strings-in-python">Multiline Strings in Python</h2>
<p>Sometimes, a single line of text is not enough. In healthcare or medical informatics, you may want to store <strong>long notes</strong>, <strong>discharge summaries</strong>, or <strong>patient history</strong> that spread across multiple lines.</p>
<p>Python allows us to create <strong>multiline strings</strong> using <strong>triple quotes</strong> (<code>"""</code> or <code>'''</code>).</p>
<h3 id="heading-example-1-patient-note">🩺 Example 1: Patient Note</h3>
<pre><code class="lang-python">patient_note = <span class="hljs-string">"""Patient complains of headache.
Blood pressure measured at 140/90.
Advised to reduce salt intake and follow up in 2 weeks."""</span>
print(patient_note)
</code></pre>
<p><strong>Output:</strong></p>
<pre><code class="lang-javascript">Patient complains <span class="hljs-keyword">of</span> headache.
Blood pressure measured at <span class="hljs-number">140</span>/<span class="hljs-number">90.</span>
Advised to reduce salt intake and follow up <span class="hljs-keyword">in</span> <span class="hljs-number">2</span> weeks.
</code></pre>
<p>👉 Notice how the text keeps its <strong>format across multiple lines</strong>.</p>
<h3 id="heading-example-2-medical-report-with-triple-single-quotes">🩺 Example 2: Medical Report (with triple single quotes)</h3>
<pre><code class="lang-python">medical_report = <span class="hljs-string">'''Lab results:
- Hemoglobin: 13.5 g/dL
- Glucose: 95 mg/dL
- Cholesterol: Normal
'''</span>
print(medical_report)
</code></pre>
<p><strong>Output:</strong></p>
<pre><code class="lang-javascript">Lab results:
- Hemoglobin: <span class="hljs-number">13.5</span> g/dL
- Glucose: <span class="hljs-number">95</span> mg/dL
- Cholesterol: Normal
</code></pre>
<h3 id="heading-key-notes-on-multiline-strings">✅ Key Notes on Multiline Strings</h3>
<ul>
<li><p>They are defined with <strong>triple quotes</strong> (<code>"""</code> or <code>'''</code>).</p>
</li>
<li><p>Useful for <strong>storing paragraphs, reports, or formatted text</strong>.</p>
</li>
</ul>
<hr />
<h2 id="heading-string-operations">String Operations</h2>
<h3 id="heading-1-concatenation-joining-strings-together">1️⃣ <strong>Concatenation (Joining strings together)</strong></h3>
<p>Concatenation means <strong>combining two or more strings into one</strong>. This is very useful in healthcare when you want to join patient information, like their name and ID, into a single message, using the <code>+</code> operator.</p>
<p>single message.</p>
<pre><code class="lang-python">first_name = <span class="hljs-string">"Ahmed"</span>
last_name = <span class="hljs-string">"Ali"</span>
full_name = first_name + <span class="hljs-string">" "</span> + last_name <span class="hljs-comment"># The purpose of the double quotes here is to create a space between the two names. </span>
print(full_name)
</code></pre>
<p><strong>Output:</strong></p>
<pre><code class="lang-javascript">Ahmed Ali
</code></pre>
<h3 id="heading-2-repetition-repeating-a-string">2️⃣ Repetition (Repeating a string)</h3>
<p>Repetition allows you to <strong>repeat a string multiple times</strong> using the <code>*</code> operator. This can be helpful, for example, when creating separators in reports or repeating a symbol.</p>
<pre><code class="lang-python">separator = <span class="hljs-string">"-"</span> * <span class="hljs-number">30</span>
print(separator)
</code></pre>
<p><strong>Output:</strong></p>
<pre><code class="lang-javascript">------------------------------
</code></pre>
<h3 id="heading-3-indexing-accessing-a-single-character">3️⃣ Indexing (Accessing a single character)</h3>
<p>When you write a string in Python, Python stores it in memory as a sequence of characters. To help us find or work with specific characters, Python gives each character a <strong>numbered position</strong>, which we call an <strong>index</strong>.</p>
<p>Think of a string as a row of numbered lockers, where each locker holds one character.</p>
<ul>
<li><h3 id="heading-indexing-from-left-to-right-positive-indexing">Indexing from Left to Right (Positive Indexing)</h3>
<p>  In Python, when you count <strong>from the left side</strong>, indexing starts at <strong>0</strong> (not 1).</p>
<p>  For example:</p>
</li>
</ul>
<pre><code class="lang-python">word = <span class="hljs-string">"HELLO"</span>
</code></pre>
<p>Here’s how Python sees it:</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td>Character</td><td>H</td><td>E</td><td>L</td><td>L</td><td>O</td></tr>
</thead>
<tbody>
<tr>
<td>Index</td><td>0</td><td>1</td><td>2</td><td>3</td><td>4</td></tr>
</tbody>
</table>
</div><p>👉 That means:</p>
<ul>
<li><p><code>word[0]</code> → <code>"H"</code></p>
</li>
<li><p><code>word[1]</code> → <code>"E"</code></p>
</li>
<li><p><code>word[4]</code> → <code>"O"</code></p>
</li>
</ul>
<h3 id="heading-indexing-from-right-to-left-negative-indexing">Indexing from Right to Left (Negative Indexing)</h3>
<p>Python also allows us to count <strong>from the right side</strong>. When we count backwards, the index starts at <strong>-1</strong>.</p>
<p>Using the same example:</p>
<pre><code class="lang-python">word = <span class="hljs-string">"HELLO"</span>
</code></pre>
<div class="hn-table">
<table>
<thead>
<tr>
<td>Character</td><td>H</td><td>E</td><td>L</td><td>L</td><td>O</td></tr>
</thead>
<tbody>
<tr>
<td>Index</td><td>-5</td><td>-4</td><td>-3</td><td>-2</td><td>-1</td></tr>
</tbody>
</table>
</div><p>👉 That means:</p>
<ul>
<li><p><code>word[-1]</code> → <code>"O"</code> (last character)</p>
</li>
<li><p><code>word[-2]</code> → <code>"L"</code> (second from the right)</p>
</li>
<li><p><code>word[-5]</code> → <code>"H"</code> (first character, same as index 0)</p>
</li>
</ul>
<pre><code class="lang-python">patient_id = <span class="hljs-string">"MRN12345"</span>
print(patient_id[<span class="hljs-number">0</span>])  <span class="hljs-comment"># First character</span>
print(patient_id[<span class="hljs-number">-1</span>]) <span class="hljs-comment"># Last character</span>
</code></pre>
<p><strong>Output:</strong></p>
<pre><code class="lang-javascript">M
<span class="hljs-number">5</span>
</code></pre>
<h3 id="heading-4-slicing-extracting-part-of-a-string">4️⃣ Slicing (Extracting part of a string)</h3>
<p><strong>Slicing</strong> means cutting out a <strong>substring</strong> (a smaller piece of a string) by telling Python where to start and where to stop.</p>
<p>The basic syntax is:</p>
<pre><code class="lang-python">string[start:stop]
</code></pre>
<ul>
<li><p><strong>start</strong> → the index where the slice begins (included).</p>
</li>
<li><p><strong>stop</strong> → the index where the slice ends (excluded).</p>
</li>
</ul>
<pre><code class="lang-python">word = <span class="hljs-string">"HOSPITAL"</span>

print(word[<span class="hljs-number">0</span>:<span class="hljs-number">4</span>])   <span class="hljs-comment"># "HOSP"</span>
print(word[<span class="hljs-number">2</span>:<span class="hljs-number">7</span>])   <span class="hljs-comment"># "SPITA"</span>
</code></pre>
<p>👉 Notice that the slice includes the character at the start index, but stops right before the stop index.</p>
<p><strong>Output:</strong></p>
<pre><code class="lang-python">HOSP
SPITA
</code></pre>
<p>Sometimes you don’t always have to write both numbers.</p>
<ul>
<li><p>If you leave out <strong>start</strong>, Python begins at the beginning.</p>
</li>
<li><p>If you leave out <strong>stop</strong>, Python goes all the way to the end.</p>
</li>
</ul>
<pre><code class="lang-python">print(word[:<span class="hljs-number">4</span>])   <span class="hljs-comment"># "HOSP"   (from start to index 3)</span>
print(word[<span class="hljs-number">3</span>:])   <span class="hljs-comment"># "PITAL"  (from index 3 to end)</span>
print(word[:])    <span class="hljs-comment"># "HOSPITAL" (entire string)</span>
</code></pre>
<p>You can also slice from the right using <strong>negative indexes</strong>.</p>
<pre><code class="lang-python">print(word[<span class="hljs-number">-4</span>:])   <span class="hljs-comment"># "ITAL"  (last 4 letters)</span>
print(word[:<span class="hljs-number">-3</span>])   <span class="hljs-comment"># "HOSPI" (everything except last 3)</span>
</code></pre>
<p>There’s an optional <strong>step</strong> value:</p>
<pre><code class="lang-python">string[start:stop:step]
</code></pre>
<ul>
<li><strong>step</strong> tells Python how many characters to skip.</li>
</ul>
<pre><code class="lang-python">print(word[<span class="hljs-number">0</span>:<span class="hljs-number">7</span>:<span class="hljs-number">2</span>])   <span class="hljs-comment"># "HSPL" (every 2nd character)</span>
print(word[::<span class="hljs-number">-1</span>])    <span class="hljs-comment"># "LATIPSOH" (reverses the string)</span>
</code></pre>
<p>Slicing is like cutting out a piece of a cake; it always includes the <strong>start</strong> index but stops right before the <strong>stop</strong> index. You can use positive or negative indices, and you can also add a <strong>step</strong> to skip characters or reverse a string.</p>
<h3 id="heading-5-membership-checking-if-a-word-exists-in-a-string">5️⃣ Membership (Checking if a word exists in a string)</h3>
<p>You can use the keywords <code>in</code> or <code>not in</code> to check if a substring exists inside a string.</p>
<pre><code class="lang-python">note = <span class="hljs-string">"Patient has diabetes"</span>
print(<span class="hljs-string">"diabetes"</span> <span class="hljs-keyword">in</span> note)     <span class="hljs-comment"># True</span>
print(<span class="hljs-string">"cancer"</span> <span class="hljs-keyword">not</span> <span class="hljs-keyword">in</span> note)   <span class="hljs-comment"># True</span>
</code></pre>
<p><strong>Output:</strong></p>
<pre><code class="lang-javascript">True
True
</code></pre>
<p>These are the <strong>basic string operations</strong>. Later, we can also explore <strong>string methods</strong> (like <code>.lower()</code>, <code>.upper()</code>, <code>.replace()</code>, etc.) which make working with strings even more powerful.</p>
<hr />
<p>Let’s wrap up Episode 7 with a <strong>hands-on exercise!</strong></p>
<h2 id="heading-practice-exercise-strings-in-action">📝 Practice Exercise: Strings in Action</h2>
<p>You are given this string:</p>
<pre><code class="lang-javascript">patient_name = <span class="hljs-string">"Samar Ali"</span>
</code></pre>
<h3 id="heading-part-1-indexing">Part 1: Indexing</h3>
<ol>
<li><p>Print the <strong>first character</strong> of the name.</p>
</li>
<li><p>Print the <strong>last character</strong> of the name.</p>
</li>
</ol>
<h3 id="heading-part-2-slicing">Part 2: Slicing</h3>
<ol start="3">
<li><p>Extract <code>"Samar"</code> from the string.</p>
</li>
<li><p>Extract <code>"Ali"</code> from the string.</p>
</li>
<li><p>Reverse the entire string.</p>
</li>
<li><p>Get every <strong>second letter</strong> in <code>"Samar"</code>.</p>
</li>
</ol>
<h3 id="heading-part-3-string-operations">Part 3: String Operations</h3>
<ol start="7">
<li><p>Concatenate <code>" Samar Ali"</code> with the string <code>" is a patient"</code>.</p>
</li>
<li><p>Repeat the string <code>"ID-"</code> <strong>3 times</strong>.</p>
</li>
<li><p>Find the <strong>length of the string</strong> using <code>len()</code></p>
</li>
</ol>
<p>After you finish, <strong>send your answers to my email saja@sajamedtech.com for feedback</strong>.</p>
<hr />
<h2 id="heading-whats-next">What’s Next?</h2>
<p>In the next episode, we’ll explore <strong>string methods</strong> in Python that allow us to <strong>transform, clean, and analyze text data</strong> more effectively.</p>
<p>See You Later!</p>
]]></content:encoded></item><item><title><![CDATA[Episode 6: Exploring Data Types in Python]]></title><description><![CDATA[In the world of healthcare, we deal with a wide range of data, from patient names and lab values to imaging files and diagnosis reports. Before we can analyze or process this data using Python, we need to understand what type of data we are working w...]]></description><link>https://blog.sajamedtech.com/episode-6-exploring-data-types-in-python</link><guid isPermaLink="true">https://blog.sajamedtech.com/episode-6-exploring-data-types-in-python</guid><category><![CDATA[medical]]></category><category><![CDATA[Python]]></category><category><![CDATA[data structures]]></category><category><![CDATA[data types]]></category><category><![CDATA[string]]></category><category><![CDATA[numbers]]></category><category><![CDATA[float]]></category><category><![CDATA[dictionary]]></category><category><![CDATA[list]]></category><category><![CDATA[tuples]]></category><category><![CDATA[technology]]></category><category><![CDATA[healthcare]]></category><dc:creator><![CDATA[Saja Ahmed]]></dc:creator><pubDate>Thu, 24 Jul 2025 06:58:38 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1753339173991/c44dc505-e220-4c35-88ef-e9f3e38fc178.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>In the world of healthcare, we deal with <strong>a wide range of data</strong>, from patient names and lab values to imaging files and diagnosis reports. Before we can analyze or process this data using Python, we need to understand what <strong>type of data</strong> we are working with.</p>
<p>In this episode, we will explore:</p>
<ul>
<li><p>What Python <strong>data types</strong> are and <strong>why they matter</strong></p>
</li>
<li><p>The difference between <strong>structured</strong> and <strong>unstructured medical data</strong></p>
</li>
<li><p>Python's <strong>basic data types</strong>: <code>int</code>, <code>float</code>, <code>str</code>, <code>bool</code></p>
</li>
<li><p>Common Python collections: <strong>lists</strong>, <strong>tuples</strong>, and <strong>dictionaries</strong></p>
</li>
<li><p>How to check data types using <code>type()</code> and <code>isinstance()</code></p>
</li>
</ul>
<p>You will also see real-life <strong>healthcare examples</strong> that show how data types help organize and protect medical information.</p>
<hr />
<h2 id="heading-what-are-python-data-types-and-why-do-they-matter-in-healthcare">🧠 <strong>What are Python data types, and why do they matter in healthcare?</strong></h2>
<p>In Python, every piece of data, like a number, a word, or a True/False value, has a <strong>type</strong>. Knowing the data type helps Python (and you) decide <strong>what you can and cannot do</strong> with that data. Python data types are the basic tools that help developers and analysts manage the large amounts of medical information created every day.</p>
<h3 id="heading-understanding-structured-vs-unstructured-medical-data">📋<strong>Understanding structured vs unstructured medical data</strong></h3>
<p>The medical field deals with <strong>two primary categories</strong> of information that require different processing approaches:</p>
<p>✅ <strong>Structured medical data</strong> is very organized and fits well into traditional databases. This includes:</p>
<ul>
<li><p>Patient demographics</p>
</li>
<li><p>Vital signs measurements</p>
</li>
<li><p>Laboratory test results</p>
</li>
<li><p>Medication dosages</p>
</li>
</ul>
<p>✅ <strong>Unstructured data</strong> doesn't have a set format but holds very valuable clinical insights. This includes:</p>
<ul>
<li><p>Clinical notes and discharge summaries</p>
</li>
<li><p>Medical images (X-rays, MRIs, CT scans, ultrasounds)</p>
</li>
<li><p>Transcribed conversations between doctors and patients</p>
</li>
<li><p>Patient-generated health data from wearable devices</p>
</li>
<li><p>Genetic sequencing reports</p>
</li>
</ul>
<hr />
<h2 id="heading-data-types-in-python">📌 Data Types in Python</h2>
<p>Python provides several built-in data types that align perfectly with healthcare needs:</p>
<ul>
<li><p>Numeric types (<code>int</code>, <code>float</code>) handle quantitative medical data like patient ages, blood pressure readings, and lab values.</p>
<pre><code class="lang-python">  patient_age = <span class="hljs-number">50</span>     <span class="hljs-comment">#This is an integer number</span>
  body_temperature = <span class="hljs-number">98.6</span>      <span class="hljs-comment">#This is a float number</span>
</code></pre>
<ul>
<li><p><strong>Integers (</strong><code>int</code><strong>)</strong>: Perfect for whole numbers like patient age, heart rate, or step counts.</p>
</li>
<li><p><strong>Floating-point numbers (</strong><code>float</code><strong>)</strong>: Ideal for measurements with decimal values such as body temperature (98.6°F), or medication dosages (2.5mg).</p>
</li>
</ul>
</li>
<li><p>String types (<code>str</code>) are <strong>immutable</strong>, meaning they <strong>can’t be changed after they are created</strong>. This makes them safer for storing sensitive patient information, as it prevents accidental changes.</p>
<p>  Strings are written inside single quotes <code>‘’</code> or double quotes <code>“”</code>.</p>
<pre><code class="lang-python">  patient_name = <span class="hljs-string">"Ali"</span>
  diagnosis = <span class="hljs-string">'Hypertension'</span>
</code></pre>
</li>
<li><p>Boolean types (<code>bool</code>) represent true/false values, ideal for test results and condition flags:</p>
<ul>
<li><p>Laboratory test results (positive/negative)</p>
</li>
<li><p>Patient status flags (admitted/discharged)</p>
</li>
<li><p>Insurance verification (covered/not covered)</p>
<pre><code class="lang-python">  is_discharged = <span class="hljs-literal">False</span>
  covered_with_insurance = <span class="hljs-literal">True</span>
</code></pre>
</li>
</ul>
</li>
</ul>
<hr />
<h3 id="heading-working-with-python-collections-lists-tuples-and-dictionaries">Working with Python Collections: Lists, Tuples, and Dictionaries</h3>
<p>In real-life healthcare and data science, we often need to manage <strong>groups of related information</strong>, like a list of symptoms, a fixed range of lab values, or detailed patient records. Python gives us special tools called <strong>collections</strong> to handle this kind of data efficiently.</p>
<p>In this section, you will learn about <strong>Lists</strong> for storing changeable data like medications, <strong>Tuples</strong> for storing fixed data sets like reference ranges, and <strong>Dictionaries</strong> for pairing labels with values like a patient’s name, age, and test results.</p>
<p>These structures help keep your data <strong>organized, readable, and accessible</strong>, which is especially important when working with medical information or building healthcare applications.</p>
<p><strong>Let’s explore each one and see how they work in simple, real-world examples:</strong></p>
<ul>
<li><p>Lists can be changed, which means they are <strong>mutable</strong>. They are written with square brackets <code>[]</code>. Lists are ordered collections, making them great for:</p>
<ol>
<li><p>Tracking symptoms that may change during treatment</p>
<pre><code class="lang-python"> symptoms = [<span class="hljs-string">"fever"</span>, <span class="hljs-string">"cough"</span>, <span class="hljs-string">"fatigue"</span>]
 print(symptoms)
</code></pre>
<ol start="2">
<li><p>Recording vital sign measurements over time</p>
</li>
<li><p>Storing patient visit history</p>
</li>
</ol>
</li>
</ol>
</li>
<li><p>Tuples store collections of related values, like symptoms or medications. They are <strong>immutable</strong> <em>(unchangeable)</em> ordered collections and are written with parentheses <code>()</code>.</p>
<p>  <strong>Use tuples when you want to protect the data from being changed</strong>. ideal for:</p>
<ul>
<li>Lab result reference ranges that shouldn't change</li>
</ul>
</li>
</ul>
<pre><code class="lang-python">    hemoglobin_range = (<span class="hljs-number">12.0</span>, <span class="hljs-number">15.5</span>)  <span class="hljs-comment"># Lower and upper limit (g/dL)</span>
    print(<span class="hljs-string">"Hemoglobin normal range:"</span>, hemoglobin_range)
</code></pre>
<ul>
<li><p>Dictionaries map keys to values, making them perfect for linking patient IDs to records. They are written inside curly brackets.</p>
<pre><code class="lang-python">  patient_record = {
      <span class="hljs-string">"patient_id"</span>: <span class="hljs-string">"MRN12345"</span>,
      <span class="hljs-string">"name"</span>: <span class="hljs-string">"Sama Ahmed"</span>,
      <span class="hljs-string">"age"</span>: <span class="hljs-number">25</span>,
      <span class="hljs-string">"blood_type"</span>: <span class="hljs-string">"O+"</span>,
      <span class="hljs-string">"allergies"</span>: [<span class="hljs-string">"Penicillin"</span>, <span class="hljs-string">"Sulfa"</span>],
      <span class="hljs-string">"vital_signs"</span>: {<span class="hljs-string">"temperature"</span>: <span class="hljs-number">98.6</span>, <span class="hljs-string">"blood_pressure"</span>: <span class="hljs-string">"120/80"</span>}
  }
</code></pre>
<p>  <strong>Don't worry about the dictionary syntax. We will cover this in more detail in future episodes.</strong></p>
</li>
</ul>
<hr />
<h2 id="heading-how-to-check-data-types-in-python">🧠 <strong>How to check data types in Python</strong></h2>
<ol>
<li><p>You can use Python’s built-in function <code>type()</code> to find out the data type of any variable.</p>
<pre><code class="lang-python"> heart_rate = <span class="hljs-number">85</span>
 print(type(heart_rate))  <span class="hljs-comment"># Output: &lt;class 'int'&gt;</span>
</code></pre>
<p> Note that the output shows you the 'class' type of the data, which is ‘int‘, an integer.</p>
<p> Try this on your device:</p>
<pre><code class="lang-python"> <span class="hljs-comment"># Patient details</span>
 patient_name = <span class="hljs-string">"Amina Yusuf"</span>          <span class="hljs-comment"># str</span>
 patient_age = <span class="hljs-number">34</span>                      <span class="hljs-comment"># int</span>
 patient_temp = <span class="hljs-number">38.2</span>                   <span class="hljs-comment"># float</span>
 is_discharged = <span class="hljs-literal">False</span>                 <span class="hljs-comment"># bool</span>

 <span class="hljs-comment"># Checking data types</span>
 print(type(patient_name))
 print(type(patient_age))
 print(type(patient_temp))
 print(type(is_discharged))
</code></pre>
<p> For medical applications, <code>type()</code> offers a quick way to confirm that patient data is in the expected format before performing calculations or analysis.</p>
</li>
<li><p>Using <code>isinstance()</code> for Safer and Smarter Type Checking</p>
<p> While <code>type()</code> tells you the exact type of a value, <code>isinstance()</code> is more flexible and often better when your program needs to handle different (but related) data types.</p>
<p> Let’s say we want to know whether a piece of data is a number, a string, or something else.</p>
<p> Here’s how you can do it:</p>
</li>
</ol>
<pre><code class="lang-python"><span class="hljs-comment"># Let's try with a number</span>
heart_rate = <span class="hljs-number">85</span>

print(isinstance(heart_rate, int))  <span class="hljs-comment"># This will print: True</span>

<span class="hljs-comment"># Now try with a word (a string)</span>
blood_type = <span class="hljs-string">"O+"</span>

print(isinstance(blood_type, int))  <span class="hljs-comment"># This will print: False</span>
print(isinstance(blood_type, str))  <span class="hljs-comment"># This will print: True</span>
</code></pre>
<ul>
<li><p><code>isinstance(value, type)</code> This is the syntax for <code>isinstance</code>.<br />  It checks: <em>“Is this value of this type?”</em></p>
<p>  If <strong>yes</strong>, it prints <code>True</code><br />  If <strong>no</strong>, it prints <code>False</code></p>
</li>
<li><p>You can even check <strong>two types at once</strong>:</p>
<pre><code class="lang-python">  age = <span class="hljs-number">30</span>
  print(isinstance(age, (int, float)))  <span class="hljs-comment"># Will be True if age is int or float</span>
</code></pre>
<h3 id="heading-why-this-is-helpful">✅ Why This Is Helpful</h3>
<p>  When working with real patient data, it’s important to:</p>
<ul>
<li><p>Know <strong>what type of data</strong> you are dealing with (number, text, etc.)</p>
</li>
<li><p>Avoid mistakes like doing math on words</p>
</li>
</ul>
</li>
</ul>
<p>    So <code>isinstance()</code> is like asking:</p>
<blockquote>
<p>"Is this value a number or text?"<br />And Python answers: <code>True</code> or <code>False</code></p>
</blockquote>
<p>    Now, try this and let me know what the outputs are:</p>
<pre><code class="lang-python">    temperature = <span class="hljs-number">98.6</span>
    print(isinstance(temperature, float)) 

    patient_name = <span class="hljs-string">"Amina"</span>
    print(isinstance(patient_name, str))
</code></pre>
<hr />
<h2 id="heading-practice-exercise-organize-and-check-patient-data">🧪 Practice Exercise: Organize and Check Patient Data</h2>
<p>Create a Python program that stores the following information about a patient:</p>
<ul>
<li><p>Full name</p>
</li>
<li><p>Age</p>
</li>
<li><p>Body temperature</p>
</li>
<li><p>Is the patient under observation? (yes/no)</p>
</li>
<li><p>Allergies list</p>
</li>
<li><p>Hemoglobin reference range</p>
</li>
<li><p>Patient’s blood type</p>
</li>
</ul>
<p>Use both <code>type()</code> and <code>isinstance()</code> to print the data types of each variable.</p>
<h3 id="heading-what-to-do">💻 What to do:</h3>
<ul>
<li><p>Use <code>print()</code> to show each variable’s value</p>
</li>
<li><p>Use <code>type()</code> to check its data type</p>
</li>
<li><p>Try <code>isinstance()</code> on at least 3 variables to see if they match the expected type</p>
</li>
</ul>
<p>📩 <strong>Once you complete the exercise, please send your code and results to my email so I can review your progress and provide feedback. saja@sajamedtech.com</strong></p>
<hr />
<h2 id="heading-conclusion-why-data-types-matter-in-medical-coding">✅ Conclusion: Why Data Types Matter in Medical Coding</h2>
<p>Understanding <strong>data types</strong> is one of the most important skills you can learn as a beginner programmer, especially in <strong>healthcare</strong>, where working with sensitive and structured data is part of daily operations.</p>
<p>Knowing whether a piece of data is a number, a word, or a true/false value helps you:</p>
<ul>
<li><p>Use the right logic and operations</p>
</li>
<li><p>Prevent errors in calculations</p>
</li>
<li><p>Ensure patient data stays clean and accurate</p>
</li>
<li><p>Work confidently with larger and more complex datasets in the future</p>
</li>
</ul>
<p>In the next episode, we’ll begin a deeper exploration of each Python data type, starting with <strong>strings</strong>. You will learn how to work with text data, apply basic string operations, and understand why this is important in managing healthcare records.</p>
<p>See you tomorrow!</p>
]]></content:encoded></item><item><title><![CDATA[Episode 5: Understanding Variables in Python]]></title><description><![CDATA[Welcome back to The Medical Coder’s Path!
In the previous episode, you wrote your very first lines of Python code. You learned how to use the print() function, create basic variables, and write comments.
Now, we will dive a bit deeper into an importa...]]></description><link>https://blog.sajamedtech.com/episode-5-understanding-variables-in-python</link><guid isPermaLink="true">https://blog.sajamedtech.com/episode-5-understanding-variables-in-python</guid><category><![CDATA[Python]]></category><category><![CDATA[Programming Blogs]]></category><category><![CDATA[variables]]></category><category><![CDATA[medical]]></category><category><![CDATA[healthcare]]></category><category><![CDATA[medicine]]></category><category><![CDATA[naming]]></category><category><![CDATA[technology]]></category><dc:creator><![CDATA[Saja Ahmed]]></dc:creator><pubDate>Thu, 17 Jul 2025 16:34:46 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1752769279917/2c5e8001-0fc6-4590-bfc4-b4a1b7b0b3b5.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Welcome back to <strong>The Medical Coder’s Path</strong>!</p>
<p>In the previous episode, you wrote your very first lines of Python code. You learned how to use the <code>print()</code> function, create basic variables, and write comments.</p>
<p>Now, we will dive a bit deeper into an important building block of Python: <strong>the variable.</strong></p>
<h3 id="heading-what-youll-learn-in-this-episode">🧠 What You’ll Learn in This Episode:</h3>
<ul>
<li><p>What is a <strong>variable</strong> in Python, and how does it work</p>
</li>
<li><p>What is the Assignment Operator in Python</p>
</li>
<li><p>Rules for Naming Variables in Python</p>
</li>
<li><p>Best practices for naming variables</p>
</li>
</ul>
<hr />
<h2 id="heading-what-is-a-variable">🔡 What is a Variable?</h2>
<p>A <strong>variable</strong> is a name you assign to a piece of information so Python can store and use it later.</p>
<p>Think of it like a <strong>labeled box</strong> that holds a value.</p>
<pre><code class="lang-python">patient_name = <span class="hljs-string">"Fatima"</span>
</code></pre>
<p>Here:</p>
<ul>
<li><p><code>patient_name</code> is the variable</p>
</li>
<li><p><code>"Fatima"</code> is the value stored inside it</p>
</li>
</ul>
<hr />
<h2 id="heading-variables-are-essential-in-programming-because-they-make-your-code">Variables are <strong>essential</strong> in programming because they make your code:</h2>
<h3 id="heading-1-accessible"><strong>1/ Accessible</strong></h3>
<p>When you assign a value to a variable, you can reuse that value anywhere in your program without needing to retype it.</p>
<p><strong>In simple words,</strong> Variables act like <strong>labels</strong>, so you don’t have to remember or rewrite the actual value.</p>
<h3 id="heading-example">📌 Example:</h3>
<pre><code class="lang-python">hospital_name = <span class="hljs-string">"Green Valley Clinic"</span>

print(<span class="hljs-string">"Welcome to"</span>, hospital_name)
print(<span class="hljs-string">"Thank you for visiting"</span>, hospital_name)
</code></pre>
<p>Instead of writing <code>"Green Valley Clinic"</code> again and again, you just write the variable <code>hospital_name</code>.</p>
<p>This approach makes your code easier to read, faster to write, and simpler to update later.</p>
<h3 id="heading-2-give-values-context"><strong>2/ Give values context</strong></h3>
<p>By naming a variable, you give meaning to the value it holds.</p>
<p><strong>In simple words,</strong> the name of a variable explains <strong>what</strong> the value is and <strong>why</strong> it matters.</p>
<h3 id="heading-example-1">📌 Example:</h3>
<pre><code class="lang-python">temp = <span class="hljs-number">37.5</span>
</code></pre>
<p>This is acceptable, but it lacks clarity.</p>
<p>However, this is much better:</p>
<pre><code class="lang-python">patient_temperature = <span class="hljs-number">37.5</span>
</code></pre>
<p>Now, anyone reading the code knows this value represents a <strong>patient’s temperature</strong>, not just a random number.</p>
<p>Giving context helps you understand your code later, allows others to read your code more easily, and reduces mistakes in large projects.</p>
<hr />
<h2 id="heading-what-is-the-assignment-operator-in-python">What is the Assignment Operator in Python?</h2>
<p>In Python, the <code>=</code> symbol is called the <strong>assignment operator</strong>. It is used to <strong>assign a value</strong> to a variable.</p>
<h3 id="heading-example-2">📌 Example:</h3>
<pre><code class="lang-python">patient_age = <span class="hljs-number">45</span>
</code></pre>
<p>Here, you are telling Python: <strong>“Store the value</strong> <code>45</code> <strong>inside the variable called</strong> <code>patient_age</code><strong>.”</strong></p>
<p>So now, whenever you use <code>patient_age</code>, Python will know that it means <code>45</code>.</p>
<h2 id="heading-but-what-is-the-difference-between-the-equal-sign-and-the-assignment-operator">But what is the difference between the equal sign and the assignment operator?</h2>
<p>In mathematics, the equal sign <code>=</code> means both sides are <strong>exactly equal</strong>.</p>
<p>For example:</p>
<pre><code class="lang-plaintext">3 + 2 = 5
</code></pre>
<p>This is a <strong>statement of equality</strong>.</p>
<p>But in <strong>Python (and most programming languages)</strong>, <code>=</code> doesn’t mean “equal to.” It means:</p>
<blockquote>
<p>“Take the value on the <strong>right</strong> and store it in the variable on the <strong>left</strong>.”</p>
</blockquote>
<p>So:</p>
<pre><code class="lang-python">x = <span class="hljs-number">10</span>
</code></pre>
<p>Means: “Let the variable <code>x</code> hold the value <code>10</code>.”</p>
<p>This is a <strong>one-way operation</strong>, not a comparison.</p>
<h3 id="heading-common-mistake">⚠️ Common Mistake:</h3>
<p>People often confuse the <strong>assignment operator (</strong><code>=</code>) with the <strong>comparison operator (</strong><code>==</code>).</p>
<ul>
<li><p><code>=</code> is used to <strong>assign</strong> values to variables</p>
</li>
<li><p><code>==</code> is used to <strong>compare</strong> values (we’ll learn this in future episodes)</p>
</li>
</ul>
<hr />
<h2 id="heading-rules-for-naming-variables-in-python">🏷️ Rules for Naming Variables in Python</h2>
<p>When you create a variable in Python, you can choose the name, but it must <strong>follow some rules</strong> so Python can understand and process it correctly.</p>
<p>Here are the most important rules and best practices:</p>
<h3 id="heading-1-variable-names-must-start-with-a-letter-or-an-underscore">1. <strong>Variable names must start with a letter or an underscore (</strong><code>_</code>)</h3>
<ul>
<li><p>Valid:</p>
<pre><code class="lang-python">  name = <span class="hljs-string">"Ali"</span>
  _age = <span class="hljs-number">30</span>
</code></pre>
</li>
<li><p>❌ Invalid if you start the variable name with a number:</p>
<pre><code class="lang-python">  <span class="hljs-number">1</span>name = <span class="hljs-string">"Sara"</span>  <span class="hljs-comment"># Error! Starts with a number</span>
</code></pre>
</li>
</ul>
<h3 id="heading-2-the-name-can-include-letters-numbers-and-underscores">2. <strong>The name can include letters, numbers, and underscores</strong></h3>
<ul>
<li><p>Valid:</p>
<pre><code class="lang-python">  patient1 = <span class="hljs-string">"Mariam"</span>
  patient_name = <span class="hljs-string">"Hassan"</span>
</code></pre>
</li>
<li><p>❌ Invalid if you use any other special characters like <code>-</code> or <code>#</code> :</p>
<pre><code class="lang-python">  patient-name = <span class="hljs-string">"Amir"</span>  <span class="hljs-comment"># Error! Hyphens are not allowed</span>
</code></pre>
</li>
</ul>
<h3 id="heading-3-variable-names-are-case-sensitive">3. <strong>Variable names are case-sensitive</strong></h3>
<pre><code class="lang-python">Name = <span class="hljs-string">"Zainab"</span>
name = <span class="hljs-string">"Ahmed"</span>
</code></pre>
<p>These are <strong>two different variables</strong> (<code>Name</code> and <code>name</code>) because Python treats uppercase and lowercase letters as different.</p>
<h3 id="heading-4-you-cannot-use-pythons-reserved-words-as-variable-names">4. <strong>You cannot use Python’s reserved words as variable names</strong></h3>
<p>Python's reserved words, like <code>if</code>, <code>for</code>, <code>True</code>, and <code>print</code>, are special keywords used for its operations and cannot be used as variable names.</p>
<p>❌ Invalid:</p>
<pre><code class="lang-python"><span class="hljs-keyword">if</span> = <span class="hljs-number">5</span>  <span class="hljs-comment"># ❌ Error: "if" is a reserved word</span>
</code></pre>
<p>✅ Instead, use something like:</p>
<pre><code class="lang-python">if_value = <span class="hljs-number">5</span>
</code></pre>
<hr />
<h2 id="heading-best-practices">💡 Best Practices:</h2>
<ul>
<li><h3 id="heading-use-clear-meaningful-names">Use <strong>clear, meaningful names</strong>:</h3>
</li>
</ul>
<p>    Good: <code>patient_name</code>, <code>temperature</code>, <code>heart_rate</code><br />    Bad: <code>a</code>, <code>b</code>, <code>x1</code> (not descriptive)</p>
<ul>
<li><h3 id="heading-use-lowercase-letters-and-underscores-snakecase">Use lowercase letters and underscores (snake_case)</h3>
<p>  In Python, the standard way to name variables is to use <strong>lowercase letters</strong> with words separated by <strong>underscores</strong>.</p>
<p>  ✅ Recommended:</p>
</li>
</ul>
<pre><code class="lang-python">patient_name = <span class="hljs-string">"Ali"</span>
blood_pressure = <span class="hljs-number">120</span>
</code></pre>
<p>This style is called “<strong>snake_case”</strong> and is the preferred naming convention in Python.</p>
<p>❌ Not recommended:</p>
<pre><code class="lang-python">PatientName = <span class="hljs-string">"Ali"</span>       <span class="hljs-comment"># CamelCase – more common in other languages like Java</span>
</code></pre>
<ul>
<li><h3 id="heading-avoid-using-very-long-names-unless-necessary">Avoid using very long names unless necessary</h3>
</li>
</ul>
<hr />
<h2 id="heading-practice-exercise-create-a-simple-hospital-intake-form">🧪 Practice Exercise: Create a Simple Hospital Intake Form</h2>
<h3 id="heading-scenario">Scenario:</h3>
<p>You’re working at the reception desk of a hospital. Create a Python program that stores a new patient’s basic information using variables.</p>
<h3 id="heading-your-task">Your task:</h3>
<ol>
<li><p>Create <strong>5 variables</strong> to store:</p>
<ul>
<li><p>Patient name</p>
</li>
<li><p>Patient ID number</p>
</li>
<li><p>Department (e.g., “Radiology”)</p>
</li>
<li><p>Doctor’s name</p>
</li>
<li><p>Room number</p>
</li>
</ul>
</li>
<li><p>Use <code>print()</code> to display the patient’s intake form in a clean format</p>
</li>
<li><p>Add <strong>comments</strong> to explain what each line is doing</p>
</li>
</ol>
<h3 id="heading-example-output">📝 Example Output:</h3>
<pre><code class="lang-python">Patient Intake Form
---------------------
Name: Huda Kareem
Patient ID: <span class="hljs-number">10432</span>
Department: Radiology
Doctor: Dr. Salim
Room No: <span class="hljs-number">12</span>B
</code></pre>
<p><strong>Use clear and meaningful variable names.</strong></p>
<p><strong>After you finish, send your answer to the following email: <mark>saja@sajamedtech.com</mark></strong></p>
<hr />
<h2 id="heading-coming-up-next-in-episode-6">📩 Coming Up Next in Episode 6:</h2>
<p>In the next episode, we will explore <strong>data types</strong>, how Python understands the kind of data you are working with (like text, numbers, or true/false values), and why it matters.</p>
<p><strong>See you tomorrow!</strong></p>
]]></content:encoded></item><item><title><![CDATA[Episode 4: Writing Your First Python Code]]></title><description><![CDATA[Welcome back to The Medical Coder’s Path!If you have been following along, you should now have your Python environment ready, whether you are using VS Code, Anaconda, Google Colab, or even your phone.
Now it’s time for the exciting part: writing your...]]></description><link>https://blog.sajamedtech.com/episode-4-writing-your-first-python-code</link><guid isPermaLink="true">https://blog.sajamedtech.com/episode-4-writing-your-first-python-code</guid><category><![CDATA[Python]]></category><category><![CDATA[healthcare]]></category><category><![CDATA[medical]]></category><category><![CDATA[technology]]></category><category><![CDATA[variables]]></category><category><![CDATA[coding]]></category><category><![CDATA[comments]]></category><category><![CDATA[print]]></category><dc:creator><![CDATA[Saja Ahmed]]></dc:creator><pubDate>Wed, 16 Jul 2025 18:49:35 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1752691409357/9770a94b-0f15-47f3-9505-4cb5616f6c2d.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Welcome back to <strong>The Medical Coder’s Path</strong>!<br />If you have been following along, you should now have your Python environment ready, whether you are using <strong>VS Code</strong>, <strong>Anaconda</strong>, <strong>Google Colab</strong>, or even your <strong>phone</strong>.</p>
<p>Now it’s time for the exciting part: <strong>writing your very first Python code!</strong> 🎉</p>
<h3 id="heading-what-will-you-learn-in-this-episode">🧠 What Will You Learn in This Episode?</h3>
<ul>
<li><p>How to run your <strong>first Python command</strong></p>
</li>
<li><p>How to use the <code>print()</code> function</p>
</li>
<li><p>How Python reads and executes code</p>
</li>
<li><p>How to declare a variable and inspect its value</p>
</li>
<li><p>How to write comments</p>
</li>
<li><p>Two simple examples: one related to <strong>healthcare</strong> and one from <strong>daily life</strong>.</p>
</li>
</ul>
<p>Let’s keep it <strong>simple and fun</strong>. No prior coding knowledge needed!</p>
<hr />
<h2 id="heading-how-to-open-a-new-python-file">🛠️ How to Open a New Python File</h2>
<p>📌<strong>Note:</strong> If you are using your smartphone, skip Anaconda and Visual Studio Code, as these options only work on computers. Instead, proceed to the section on <strong>What is the</strong> <code>print()</code> Function in Python?</p>
<h3 id="heading-on-anaconda-jupyter-notebook">🟢 <strong>On Anaconda (Jupyter Notebook)</strong></h3>
<ol>
<li><p>Open <strong>Anaconda Navigator</strong> from your Start Menu or Applications folder.</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1752684184688/55960fc8-032a-4a12-a6ff-fac37ae50a5e.png" alt class="image--center mx-auto" /></p>
</li>
<li><p>Click <strong>Launch</strong> under the <strong>Jupyter Notebook</strong> section.</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1752684217973/9d210f8f-6e4e-458a-94e3-3822180fd38c.png" alt class="image--center mx-auto" /></p>
</li>
<li><p>A browser tab will open (usually at <a target="_blank" href="http://localhost:8888"><code>http://localhost:8888</code></a>).</p>
</li>
<li><p>Navigate to the folder where you want to create your file.</p>
</li>
<li><p>Click <strong>New &gt; Python 3 (ipykernel)</strong> from the top right corner.</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1752684645023/9c5b380c-eb8e-4bbd-a861-db431e175653.png" alt class="image--center mx-auto" /></p>
</li>
<li><p>A new notebook will open, now you can type Python code in the gray "cells" and click <strong>Run</strong>.</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1752684881861/656d3609-e201-40da-9309-45c8111814a5.png" alt class="image--center mx-auto" /></p>
</li>
<li><p>Try to write the following code:</p>
<pre><code class="lang-python"> print(<span class="hljs-string">"Hello, future coder!"</span>)
</code></pre>
</li>
<li><p>After that, run the code using the ▶️ “Run” button above</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1752686619262/f3377e8e-b591-42f1-abf9-9b46e7568310.png" alt class="image--center mx-auto" /></p>
</li>
<li><p>You will see the output below the cell.</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1752686770826/c7aabd4d-3714-4dfb-9b52-3f76404df510.png" alt class="image--center mx-auto" /></p>
<p> 📌 <strong>Note:</strong> <em>Jupyter Notebook saves files with a</em> <code>.ipynb</code> extension (Notebook format).</p>
</li>
</ol>
<blockquote>
<p>A <code>.ipynb</code> file is a <strong>Jupyter Notebook file</strong>. It stands for "<strong>Interactive Python Notebook</strong>."</p>
</blockquote>
<p>It allows you to write <strong>Python code</strong> in small sections (cells), add <strong>text, images, and explanations</strong>, run code, <strong>see the results immediately below</strong> the code cell, and save everything in one file.</p>
<h3 id="heading-on-visual-studio-code-vs-code">🔵 <strong>On Visual Studio Code (VS Code)</strong></h3>
<ol>
<li><p>Open <strong>Visual Studio Code</strong>.</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1752685285749/178adb08-b02e-4b7f-a75f-4bdedb237012.png" alt class="image--center mx-auto" /></p>
</li>
<li><p>Create a new folder or open an existing folder where you want to save your Python file.</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1752685386420/2fed6513-3d01-49d2-9915-40bd8f3850f5.png" alt class="image--center mx-auto" /></p>
</li>
<li><p>After opening your folder, you will see its name. To the right, there are four symbols. Click on <strong>"New File"</strong>.</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1752685730311/35e2b39a-3324-41ec-b49b-494b10ae8d39.png" alt class="image--center mx-auto" /></p>
</li>
<li><p>Enter a name for your file and add the <code>.py</code> extension at the end. (e.g., <a target="_blank" href="http://episode4.py"><code>episode4.py</code></a>):</p>
</li>
<li><p>In the file, start writing your Python code.</p>
</li>
<li><p>Try to write the following code:</p>
<pre><code class="lang-python"> print(<span class="hljs-string">"Hello, future coder!"</span>)
</code></pre>
</li>
<li><p>After that, run the code using the ▶️ “Run” button above in the right corner</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1752686440597/ed8f9259-872c-4f68-b719-e703b5fe6c06.png" alt class="image--center mx-auto" /></p>
</li>
<li><p>You will see the terminal open in the lower half of the code editor, displaying the folder and file names, along with the output.</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1752686920394/852f4591-d5a8-40c6-8691-87a1e77492b3.png" alt class="image--center mx-auto" /></p>
</li>
</ol>
<p><strong>What just happened?</strong><br />You told Python to display the message inside the quotation marks ““ using the <code>print()</code> function. It’s the most basic and useful command for beginners.</p>
<hr />
<h2 id="heading-what-is-the-print-function-in-python">What is the <code>print()</code> Function in Python?</h2>
<p>The <code>print()</code> Function is a <strong>built-in function</strong> that outputs the specified message to the screen (standard output). It is one of the <strong>most basic and commonly used functions in Python</strong>. It tells Python to <strong>display a message or the result of a calculation</strong> on the screen.</p>
<details><summary>What Is a Built-in Function in Python?</summary><div data-type="detailsContent">A <strong>built-in function</strong> in Python is a function that is <strong>already included with Python</strong>. So, you don’t need to install anything or write extra code.</div></details>

<pre><code class="lang-python">print(<span class="hljs-string">"Hello, future coder!"</span>)
</code></pre>
<p>🧠 <strong>In simple terms:</strong> <code>print()</code> is how Python <strong>talks back to you</strong>.</p>
<p>Whenever you want Python to <strong>show something</strong>, like text, numbers, or results, you use <code>print()</code>.</p>
<p>You can also print <strong>numbers, variables, or even results of math operations:</strong></p>
<pre><code class="lang-python">print(<span class="hljs-number">5</span> + <span class="hljs-number">3</span>)    <span class="hljs-comment">#Try it in your code editor!</span>
</code></pre>
<hr />
<h2 id="heading-how-python-reads-and-executes-code">How Python Reads and Executes Code</h2>
<p>When you write a Python program, Python reads your code <strong>from top to bottom</strong>, <strong>one line at a time</strong>, and executes each instruction step by step.</p>
<p>Think of Python like a person reading a recipe:</p>
<ol>
<li><p>It starts at the top.</p>
</li>
<li><p>It reads the first instruction (line of code).</p>
</li>
<li><p>It follows the instructions and does what you told it to do.</p>
</li>
<li><p>Then it moves to the next line.</p>
</li>
</ol>
<h3 id="heading-example">🧪 Example:</h3>
<pre><code class="lang-python">print(<span class="hljs-string">"Step 1: Starting..."</span>)
print(<span class="hljs-string">"Step 2: Doing something"</span>)
print(<span class="hljs-string">"Step 3: Done!"</span>)
</code></pre>
<p>🖥️ <strong>Output:</strong></p>
<pre><code class="lang-plaintext">Step 1: Starting...
Step 2: Doing something
Step 3: Done!
</code></pre>
<p>Python reads and runs the lines in order; it <strong>does not skip around</strong> unless you tell it to (like with conditions or loops, which we’ll learn later).</p>
<h3 id="heading-why-this-is-important">📌 Why This Is Important:</h3>
<p>Understanding how Python processes your code <strong>step by step</strong> helps you:</p>
<ul>
<li><p>Read and understand other people’s code</p>
</li>
<li><p>Write better programs yourself</p>
</li>
<li><p>Debug problems when something goes wrong</p>
</li>
</ul>
<hr />
<h2 id="heading-how-to-declare-a-variable-and-check-its-value">How to Declare a Variable and Check Its Value?</h2>
<p>A <strong>variable</strong> is like a <strong>container</strong> that stores a value (like a number, a word, or any data). You give it a name, and Python remembers the value for you.</p>
<h3 id="heading-to-declare-create-a-variable">To declare (create) a variable:</h3>
<pre><code class="lang-python">age = <span class="hljs-number">25</span>
name = <span class="hljs-string">"Ahmed"</span>
</code></pre>
<ul>
<li><p><code>age</code> stores the number 25</p>
</li>
<li><p><code>name</code> stores the word “Ahmed”</p>
</li>
</ul>
<h3 id="heading-to-inspect-see-the-value-of-a-variable">To inspect (see) the value of a variable:</h3>
<p>You can use <code>print()</code>:</p>
<pre><code class="lang-python">print(age)
print(name)
</code></pre>
<p>🖥️ Output:</p>
<pre><code class="lang-plaintext">25
Ahmed
</code></pre>
<hr />
<h2 id="heading-how-to-write-comments-in-python">💬 How to Write Comments in Python</h2>
<p><strong>Comments</strong> are notes you write in your code to explain what you are doing.<br />Python ignores them when running the code; they are just for you (or others) to understand better.</p>
<h3 id="heading-single-line-comment">✍️ Single-line comment:</h3>
<p>Comments in Python start with <code>#</code>. When comments start on a new line, they are called <strong>block comments</strong>, while comments that appear on the same line as code are called <strong>inline comments</strong>.</p>
<pre><code class="lang-python"><span class="hljs-comment"># This is a block comment</span>
age = <span class="hljs-number">30</span>  <span class="hljs-comment"># This stores the person's age/ inline comment</span>
</code></pre>
<h3 id="heading-why-comments-matter">📌Why comments matter:</h3>
<p>They help you and others understand your code, especially as projects grow in length and complexity.</p>
<hr />
<h2 id="heading-real-life-examples">Real-Life Examples</h2>
<p>Let's look at two examples to see how Python can help us solve simple problems.</p>
<h3 id="heading-example-1-medical-scenario-checking-patient-information">🩺 Example 1: Medical Scenario – Checking patient information</h3>
<pre><code class="lang-python"><span class="hljs-comment"># Storing patient information</span>
patient_name = <span class="hljs-string">"Mariam"</span>
patient_age = <span class="hljs-number">45</span>

<span class="hljs-comment"># Printing the information</span>
print(<span class="hljs-string">"Patient Name:"</span>, patient_name)
print(<span class="hljs-string">"Patient Age:"</span>, patient_age)
</code></pre>
<p>🖥️ <strong>Output:</strong></p>
<pre><code class="lang-python">Patient Name: Mariam
Patient Age: <span class="hljs-number">45</span>
</code></pre>
<p>📌<strong>What this shows:</strong> How to store and print data, which is useful for <strong>building medical record systems</strong> later.</p>
<h3 id="heading-example-2-daily-to-do-list">🏡 Example 2: Daily To-Do List</h3>
<pre><code class="lang-python"><span class="hljs-comment"># Storing tasks for the day</span>
task1 = <span class="hljs-string">"Check emails"</span>
task2 = <span class="hljs-string">"Attend Python class"</span>
task3 = <span class="hljs-string">"Go for a walk"</span>

<span class="hljs-comment"># Printing the to-do list</span>
print(<span class="hljs-string">"Today's Tasks:"</span>)
print(task1)
print(task2)
print(task3)
</code></pre>
<p>🖥️ <strong>Output:</strong></p>
<pre><code class="lang-python">Today<span class="hljs-string">'s Tasks:
Check emails
Attend Python class
Go for a walk</span>
</code></pre>
<p>📌<strong>What this shows:</strong> How Python can help organize everyday routines by storing and displaying tasks.</p>
<hr />
<h2 id="heading-exercise-create-a-simple-patient-profile-program">🧪 Exercise: Create a Simple Patient Profile Program</h2>
<h3 id="heading-scenario">🩺 Scenario:</h3>
<p>You’re working at a health center, and you need to quickly print out a patient’s basic information to share with a nurse. You will store and display the patient’s details using Python.</p>
<h3 id="heading-what-to-do">🎯 What to do:</h3>
<ol>
<li><p>Create variables to store the following:</p>
<ul>
<li><p>Patient's full name</p>
</li>
<li><p>Age</p>
</li>
<li><p>Gender</p>
</li>
<li><p>Department (e.g., Pediatrics, Cardiology, etc.)</p>
</li>
<li><p>Hospital name</p>
</li>
</ul>
</li>
<li><p>Use the <code>print()</code> function to display all the information clearly.</p>
</li>
<li><p>Add comments to explain what each part of the code is doing.</p>
</li>
</ol>
<h3 id="heading-example-output">📝 Example Output:</h3>
<pre><code class="lang-python">Patient Information
--------------------
Name: Amina Yusuf
Age: <span class="hljs-number">29</span>
Gender: Female
Department: Dermatology
Hospital: Sunrise Medical Center
</code></pre>
<h3 id="heading-bonus-tip-optional">💡 Bonus Tip (Optional):</h3>
<p>You can also add a short welcome message at the top using <code>print()</code> — like:</p>
<pre><code class="lang-python">print(<span class="hljs-string">"Welcome to Sunrise Medical Center"</span>)
</code></pre>
<p>📩 <strong>After you finish, please send a screenshot of your exercise to this email:</strong> saja@sajamedtech.com</p>
<hr />
<h2 id="heading-whats-coming-in-episode-5">🚀What’s Coming in Episode 5?</h2>
<p>In the next episode, we will explore <strong>variables and data types.</strong></p>
<p>💬 <strong>Let me know in the comments or messages:</strong><br />- What setup did you use to run your first code?<br />- What do you want to build with Python?</p>
<p>Don’t forget to <strong>subscribe to Hashnode</strong> to get a notification when the next episode is released.</p>
<p><strong>See you tomorrow!</strong></p>
]]></content:encoded></item><item><title><![CDATA[Episode 3: Setting Up Your Python Environment]]></title><description><![CDATA[Welcome to Episode 3 of The Medical Coder’s Path!
In this article, we will set up your Python environment so you are ready to start coding in the next episode, whether you are using a laptop, a smartphone, or just want to code in your browser.
I will...]]></description><link>https://blog.sajamedtech.com/episode-3-setting-up-your-python-environment</link><guid isPermaLink="true">https://blog.sajamedtech.com/episode-3-setting-up-your-python-environment</guid><category><![CDATA[Python]]></category><category><![CDATA[Programming Blogs]]></category><category><![CDATA[healthcare]]></category><category><![CDATA[medical]]></category><category><![CDATA[medicine]]></category><category><![CDATA[Environment]]></category><category><![CDATA[setup]]></category><dc:creator><![CDATA[Saja Ahmed]]></dc:creator><pubDate>Tue, 15 Jul 2025 20:02:37 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1752609539791/916532be-4e52-4480-bf4d-9121558e8bed.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Welcome to <strong>Episode 3</strong> of <em>The Medical Coder’s Path</em>!</p>
<p>In this article, we will set up your Python environment so you are ready to start coding in the next episode, whether you are using a <strong>laptop</strong>, a <strong>smartphone</strong>, or just want to code in your <strong>browser</strong>.</p>
<p>I will provide you with <strong>several setup options</strong>, including <strong>my personal favorite</strong>.<br />You can choose the option that best suits <strong>your device, your learning style, and your goals</strong>.<br />This way, you can stick with the setup that works best for you, not just for today, but for all the upcoming episodes.</p>
<h3 id="heading-before-we-begin">🟢 Before We Begin</h3>
<p>In the last episode, we talked about what Python is and described it as a popular, beginner-friendly programming language known for its <strong>clear and easy-to-read syntax</strong>. In this lesson, there is another <strong>important term</strong> you should know: <em>"IDE"</em> or <em>"Integrated Development Environment."</em></p>
<p><strong>What does it mean?</strong> An IDE is a software application that gives you everything you need to write, run, and debug code, all in one place. Think of it like a <strong>digital desk for coding.</strong> It usually includes a code editor, a terminal/console, and tools for testing and debugging.</p>
<p>There are many types of IDEs, such as <strong>VS</strong> <strong>(Visual Studio) Code</strong>, <strong>PyCharm</strong>, and <strong>Anaconda's Jupyter Notebook</strong>. In this episode, I will focus on two IDEs: <strong>Visual Studio Code</strong> and <strong>Anaconda's Jupyter Notebook</strong>.</p>
<p>📌 <strong>Note: If you are using your smartphone, skip Anaconda and Visual Studio Code because these options only work on computers. Check out Option 4 instead.</strong></p>
<p>Let’s get started!</p>
<hr />
<h2 id="heading-option-1-anaconda-easiest-for-beginners">🧰 Option 1: Anaconda (Easiest for Beginners)</h2>
<p>If you want everything pre-installed (Python + Jupyter + Python libraries), <strong>Anaconda</strong> is a complete all-in-one environment.</p>
<h4 id="heading-steps">🛠 Steps:</h4>
<ol>
<li><p>Download Anaconda from <a target="_blank" href="https://www.anaconda.com/products/distribution">https://www.anaconda.com/products/distribution</a>.</p>
<p> They will ask you to provide an email to download the Distribution. After you provide your it, check your email inbox, as they will send the download link to your email.</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1752642766347/c2830900-cf97-42d8-b1fa-c1bee8893a75.png" alt class="image--center mx-auto" /></p>
</li>
<li><p>Make Sure to choose Distribution Installers:</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1752642176850/6f0f4ba3-1bc5-4cb0-81bc-b807a211f1bf.png" alt class="image--center mx-auto" /></p>
</li>
<li><p>Follow the installer (for Windows or Mac)</p>
</li>
<li><p>Open Anaconda Navigator and launch <strong>Jupyter Notebook</strong></p>
</li>
</ol>
<h3 id="heading-anaconda-ide-usually-comes-with"><strong>Anaconda IDE usually comes with</strong></h3>
<ul>
<li><p>Python</p>
</li>
<li><p>Jupyter: allows you to write and run code <strong>in small sections, known as "cells."</strong></p>
</li>
<li><p>Pandas, NumPy, Matplotlib, and many more libraries.</p>
<p>  Don’t worry if you don’t understand what these libraries are right now; we will discuss them more in future episodes.</p>
</li>
</ul>
<p>✅ In this option, <em>you don’t need to install Python and an IDE separately</em>. <strong>All are included!</strong></p>
<hr />
<h2 id="heading-option-2-python-vs-code-my-preferred-setup">🧰 Option 2: Python + VS Code (My Preferred Setup)</h2>
<p>Personally, I prefer downloading <strong>Python from</strong> <a target="_blank" href="http://python.org"><strong>python.org</strong></a> and using <strong>Visual Studio Code (VS Code)</strong> as my code editor “IDE“.</p>
<p>Why? Because VS Code:</p>
<ul>
<li><p>Is <strong>lightweight</strong>, fast, and clean</p>
</li>
<li><p>Is used by <strong>many professionals and developers</strong></p>
</li>
<li><p>Prepares you for more <strong>advanced coding and projects</strong></p>
</li>
</ul>
<h4 id="heading-steps-1">🛠 Steps:</h4>
<ol>
<li><p>Go to <a target="_blank" href="https://www.python.org">https://www.python.org</a> and download the latest version of Python</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1752601094420/5935a59f-2b99-48a6-916d-66ae5c91c836.png" alt class="image--center mx-auto" /></p>
</li>
<li><p><strong>Important:</strong> During installation, check the box that says “Add Python to PATH”</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1752608981087/f940de7b-1d9f-4f37-bdd1-5efa35bdf5ca.png" alt class="image--center mx-auto" /></p>
</li>
</ol>
<p>After installation, <strong>open Command Prompt or Terminal.</strong></p>
<details><summary>🖥️ What is the Command Prompt or Terminal?</summary><div data-type="detailsContent">After installing Python, you need to <strong>check if it was installed successfully</strong> by typing a simple command. To do this, use the <strong>Command Prompt</strong> (on Windows) or the <strong>Terminal</strong> (on Mac). Imagine it as a <strong>black-and-white window</strong> where you can type easy commands to chat directly with your computer.</div></details>

<h3 id="heading-on-mac-how-to-open-terminal">🍎 On <strong>Mac</strong>: How to Open Terminal</h3>
<ol>
<li><p>Press <strong>Command + Spacebar</strong> to open <strong>Spotlight Search</strong></p>
</li>
<li><p>Type <strong>Terminal</strong> and hit <strong>Enter</strong></p>
</li>
<li><p>A white or black window will open with a line like:</p>
</li>
</ol>
<pre><code class="lang-ruby">Your-<span class="hljs-symbol">Mac:</span>~ yourname$
</code></pre>
<h3 id="heading-on-windows-how-to-open-command-prompt">💻 On <strong>Windows</strong>: How to Open Command Prompt</h3>
<ol>
<li><p>Click the <strong>Start Menu</strong> (Windows icon in the bottom-left corner)</p>
</li>
<li><p>Type <strong>cmd</strong> in the search bar</p>
</li>
<li><p>Click on <strong>Command Prompt</strong> (you'll see a black window open)</p>
</li>
</ol>
<p>📌 It will look like this:</p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1752607514497/45e4f387-13c2-4bc8-b653-740a39f511c0.png" alt class="image--center mx-auto" /></p>
<ol start="3">
<li><p>After opening Command Prompt (Windows) or Terminal (Mac), type the following and press <strong>Enter</strong>:</p>
<pre><code class="lang-python"> python --version
</code></pre>
</li>
<li><p>You should see something like <code>Python 3.13.5</code>. This confirms that Python was installed successfully and shows the version you have.</p>
</li>
<li><p>After installing Python, download <strong>Visual Studio Code</strong> from <a target="_blank" href="https://code.visualstudio.com">https://code.visualstudio.com</a></p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1752603379348/47734258-2add-403c-81f9-0aae21e9df62.png" alt class="image--center mx-auto" /></p>
</li>
<li><p>After setup, open VS Code, go to <strong>Extensions</strong>, search for <code>Python</code>, and install the one by Microsoft.</p>
<p> <img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1752606288983/a46ea1e9-10d6-40e1-a82b-bcc654a357f1.png" alt class="image--center mx-auto" /></p>
</li>
<li><p>Now, you are ready to create and run your <code>.py</code> files! (We'll talk about this in the next episode.)</p>
</li>
</ol>
<p>✅ If you’re ready to dive deeper into programming with more control, this setup is a great place to start!</p>
<hr />
<h2 id="heading-option-3-google-colab-no-installation-needed">🧰 Option 3: Google Colab (No Installation Needed)</h2>
<p>Want to start right away in your browser without downloading anything?<br />Use <strong>Google Colab</strong>, which runs Python in your browser.</p>
<h4 id="heading-steps-2">🛠 Steps:</h4>
<ol>
<li><p>Go to <a target="_blank" href="http://colab.research.google.com">colab.research.google.com</a></p>
</li>
<li><p>Sign in with your Google account</p>
</li>
<li><p>Click “New Notebook”</p>
</li>
<li><p>Start writing Python instantly!</p>
</li>
</ol>
<p>✅ Pros:</p>
<ul>
<li><p>No installation</p>
</li>
<li><p>Works on any device</p>
</li>
<li><p>Saves your notebooks directly to Google Drive</p>
</li>
</ul>
<hr />
<h2 id="heading-option-4-using-your-smartphone">📱 Option 4: Using Your Smartphone?</h2>
<p>If you don’t have access to a computer, you can still start learning Python on your <strong>Android</strong> or <strong>iOS</strong> device.</p>
<h3 id="heading-android">📲 Android:</h3>
<ul>
<li><p>Download <strong>Pydroid 3</strong> from the Google Play Store</p>
</li>
<li><p>Open the app and start writing Python</p>
</li>
<li><p>Beginner-friendly and works offline</p>
</li>
</ul>
<h3 id="heading-iphoneipad">🍎 iPhone/iPad:</h3>
<ul>
<li><p>Download <strong>Pyto</strong> (free) or <strong>Pythonista 3</strong> (paid) from the App Store</p>
</li>
<li><p>These apps allow you to run and test Python code directly on your iOS device</p>
</li>
</ul>
<hr />
<h2 id="heading-whats-coming-in-episode-4">📅 What’s Coming in Episode 4?</h2>
<p>In the next episode, we’ll write your <strong>first real Python code</strong> together:</p>
<ul>
<li><p>Print your first message</p>
</li>
<li><p>Try a mini-medical example</p>
</li>
<li><p>Build confidence, one line at a time</p>
</li>
</ul>
<p>💬 Let me know in the comments which setup you chose and why? I’d love to hear from you!</p>
<p><a target="_blank" href="https://sajamedtech.com/#contact"><strong>https://sajamedtech.com/#contact</strong></a></p>
<p>And don’t forget to <strong>subscribe to the series</strong> on Hashnode to get notified the moment the next episode goes live.</p>
]]></content:encoded></item><item><title><![CDATA[Episode 2: What Is Python? And Why Should You Learn It?]]></title><description><![CDATA[Welcome back to The Medical Coder’s Path!This is Day 2 of our 30-day journey into learning Python, step by step, without stress, and with no prior experience required.
Whether you're a medical student, a healthcare worker, or just someone curious abo...]]></description><link>https://blog.sajamedtech.com/episode-2-what-is-python-and-why-should-you-learn-it</link><guid isPermaLink="true">https://blog.sajamedtech.com/episode-2-what-is-python-and-why-should-you-learn-it</guid><category><![CDATA[Python]]></category><category><![CDATA[medical]]></category><category><![CDATA[AI]]></category><category><![CDATA[healthcare]]></category><category><![CDATA[Real-life examples]]></category><category><![CDATA[learn coding]]></category><dc:creator><![CDATA[Saja Ahmed]]></dc:creator><pubDate>Mon, 14 Jul 2025 07:00:13 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1752473782390/78172d35-8e4e-41e5-8006-95bb52675179.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Welcome back to <strong>The Medical Coder’s Path!</strong><br />This is <strong>Day 2</strong> of our 30-day journey into learning Python, step by step, without stress, and with no prior experience required.</p>
<p>Whether you're a <strong>medical student</strong>, a <strong>healthcare worker</strong>, or just someone curious about programming, you're exactly where you need to be.</p>
<p><strong>Today</strong>, we’ll explore:</p>
<p>💬 <em>What is Python?</em></p>
<p>🤔 <em>Why should you learn it, even if you’ve never written a line of code?</em></p>
<h2 id="heading-so-what-is-python">So, What Is Python?</h2>
<p><strong>Python</strong> is a popular, high-level programming language that’s known for being:</p>
<p>✅ <strong>Simple to Learn:</strong> You don’t need to memorize weird symbols or complex rules to get started. Python reads almost like plain English, perfect for beginners.</p>
<pre><code class="lang-python">print(<span class="hljs-string">"Hello, future medical coder!"</span>)
</code></pre>
<p>This single line displays a message on the screen: <em>"Hello, future medical coder!"</em> Simple, right?</p>
<p>In some other programming languages, the syntax can be difficult to learn, like this Java code:</p>
<pre><code class="lang-java"><span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">HelloMedicalCoder</span> </span>{
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">static</span> <span class="hljs-keyword">void</span> <span class="hljs-title">main</span><span class="hljs-params">(String[] args)</span> </span>{
        System.out.println(<span class="hljs-string">"Hello, future medical coder"</span>);
    }
}
</code></pre>
<p>So frustrating with so many symbols and words, right?</p>
<p>✅ <strong>Easy to Read:</strong> You’ll spend more time understanding the <em>logic</em> behind coding and less time figuring out syntax. That makes learning smoother and less frustrating.</p>
<p>✅ <strong>Powerful Enough for Anything:</strong> Although Python is easy for beginners, it's also used by major companies like Google, NASA, and hospitals to create complex tools, including <strong>AI</strong>, <strong>healthcare platforms</strong>, and <strong>data analysis systems</strong>.</p>
<h2 id="heading-why-python-is-relevant-to-you">👩‍⚕️ Why Python Is Relevant to You?</h2>
<p>You might be wondering: <em>“I’m not a tech person. Why should I learn this?”</em></p>
<p>Here’s why Python is useful in <strong>medicine and real life</strong>:</p>
<h3 id="heading-in-healthcare">🏥 In Healthcare:</h3>
<div class="hn-table">
<table>
<thead>
<tr>
<td>📊 <strong>Analyze patient or lab data</strong></td><td><strong>Instead of manually sorting through lab results or using complicated Excel formulas, Python can quickly read and analyze patient data for you. For example, it can filter out all abnormal blood test values or calculate averages in seconds, saving time and reducing mistakes.</strong></td></tr>
</thead>
<tbody>
<tr>
<td>🤖 <strong>Build a simple AI or machine learning model</strong></td><td><strong>With Python, you can create basic AI tools that "learn" from data. For example, you could teach a model to guess a patient's risk level based on their age and symptoms, or train a system to recognize patterns in test results.</strong></td></tr>
<tr>
<td>🧬 <strong>Understand AI models used in diagnostics or genomics</strong></td><td><strong>AI is being used more and more in areas like X-ray analysis or genetic testing.</strong></td></tr>
<tr>
<td>⚙️ <strong>Automate repetitive tasks</strong></td><td><strong>Do you often find yourself doing the same task over and over? Like converting temperatures from Fahrenheit to Celsius, or deleting empty rows from a spreadsheet? Python can do these tasks automatically for you, so you can focus on more important things.</strong></td></tr>
<tr>
<td>📱 <strong>Build small tools</strong></td><td><strong>You can use Python to create simple tools, like a BMI (Body Mass Index) calculator, a medication reminder, or a form that organizes patient data.</strong></td></tr>
</tbody>
</table>
</div><h3 id="heading-in-real-life">🌍 In Real Life:</h3>
<div class="hn-table">
<table>
<thead>
<tr>
<td>🧾 <strong>Track expenses</strong></td><td><strong>You can use Python to keep a list of your spending and automatically calculate how much money you spent this week and this month.</strong></td></tr>
</thead>
<tbody>
<tr>
<td>🤖 <strong>Build a simple AI or machine learning model</strong></td><td><strong>Just like in medicine, AI and machine learning models are used in many other fields. For example, schools use these models to identify students who might need extra help based on quiz scores, attendance, and study time.</strong></td></tr>
<tr>
<td><strong>📩 Automate emails or messages</strong></td><td><strong>Instead of sending the same email or message over and over, Python can send them for you, like thank-you emails, reminders, or reports. You write the message once, and Python does the rest.</strong></td></tr>
</tbody>
</table>
</div><h2 id="heading-real-life-examples-of-python-in-action">🔍 Real-Life Examples of Python in Action</h2>
<h3 id="heading-example-1-healthcare-identifying-patients-with-fever">🩺 <strong>Example 1 — Healthcare: Identifying Patients with Fever</strong></h3>
<p><strong>Imagine this:</strong><br />You're on a hospital ward with five patients, quickly checking and noting their temperatures.</p>
<pre><code class="lang-plaintext">36.5, 37.2, 38.6, 39.1, 36.8
</code></pre>
<p>Now you want to identify which patients have a fever (anything above 38°C). Instead of checking each one by hand, calculating, and writing it down, you can simply ask Python: <em>“Can you tell me which patients have a fever?”</em></p>
<p>And Python replies:</p>
<pre><code class="lang-plaintext">Patients with fever: 38.6, 39.1
</code></pre>
<p>✅ <strong>Simple, fast, and accurate.</strong></p>
<p>🎓 <strong>Example 2 — Education: Predicting Which Students May Need Help</strong></p>
<p><strong>Imagine this:</strong><br />You're a teacher reviewing your students' midterm grades and whether they passed the final exam:</p>
<pre><code class="lang-yaml"><span class="hljs-attr">Midterm Grades:</span> <span class="hljs-number">45</span><span class="hljs-string">,</span> <span class="hljs-number">60</span><span class="hljs-string">,</span> <span class="hljs-number">75</span><span class="hljs-string">,</span> <span class="hljs-number">85</span><span class="hljs-string">,</span> <span class="hljs-number">50</span>  
<span class="hljs-string">Passed</span> <span class="hljs-string">Final</span> <span class="hljs-string">Exam</span> <span class="hljs-string">(1</span> <span class="hljs-string">=</span> <span class="hljs-literal">Yes</span><span class="hljs-string">,</span> <span class="hljs-number">0</span> <span class="hljs-string">=</span> <span class="hljs-literal">No</span><span class="hljs-string">):</span> <span class="hljs-number">0</span><span class="hljs-string">,</span> <span class="hljs-number">0</span><span class="hljs-string">,</span> <span class="hljs-number">1</span><span class="hljs-string">,</span> <span class="hljs-number">1</span><span class="hljs-string">,</span> <span class="hljs-number">0</span>
</code></pre>
<p>Now, a new student scores <strong>70</strong> on their midterm. You're wondering: <em>“Will this student likely pass the final exam, or should I give them extra support?”</em></p>
<p>You ask Python: <em>“Based on the past grades, what’s your prediction?”</em></p>
<p>And Python replies:</p>
<pre><code class="lang-yaml"><span class="hljs-attr">Prediction:</span> <span class="hljs-string">Student</span> <span class="hljs-string">with</span> <span class="hljs-string">grade</span> <span class="hljs-number">70</span> <span class="hljs-string">→</span> <span class="hljs-string">Likely</span> <span class="hljs-string">to</span> <span class="hljs-string">pass</span> <span class="hljs-string">✅</span>
</code></pre>
<h2 id="heading-your-challenge-for-today">🧠 Your Challenge for Today</h2>
<p>You don’t need to code anything today.</p>
<p>Just answer this: <strong>“What’s one small, boring, or repetitive task you’d love to automate in your daily life?”</strong></p>
<p>Coming up with a <strong>real idea</strong> gives your learning a purpose. When you eventually write code, it’ll feel meaningful, not random or abstract.</p>
<p>Write down your idea and share it with me using the following link:</p>
<p><a target="_blank" href="https://sajamedtech.com/#contact">https://sajamedtech.com/#contact</a></p>
<h2 id="heading-whats-coming-tomorrow">📅 What’s Coming Tomorrow?</h2>
<p>In <strong>Episode 3</strong>, we’ll finally get started with:</p>
<p>🔧 How to set up and install the Python environment.</p>
<p>See you tomorrow in <strong>Episode 3 of The Medical Coder’s Path!</strong> 💻🩺</p>
]]></content:encoded></item><item><title><![CDATA[Episode 1: Welcome to The Medical Coder’s Path]]></title><description><![CDATA[Hello and welcome! 👋 I'm Saja Ahmed, and I’m so glad you're here. Let me tell you a little about myself.
Ever since I was in middle school, I have been fascinated by technology. I remember being curious about computers, software, and how digital too...]]></description><link>https://blog.sajamedtech.com/episode-1-welcome-to-the-medical-coders-path</link><guid isPermaLink="true">https://blog.sajamedtech.com/episode-1-welcome-to-the-medical-coders-path</guid><category><![CDATA[Python]]></category><category><![CDATA[healthcare]]></category><category><![CDATA[medicine]]></category><category><![CDATA[technology]]></category><category><![CDATA[beginners guide]]></category><category><![CDATA[Medical coding]]></category><category><![CDATA[Medical Students ]]></category><dc:creator><![CDATA[Saja Ahmed]]></dc:creator><pubDate>Sun, 13 Jul 2025 07:41:27 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1752391615421/052bc709-3756-49d2-a43a-308206241ac1.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Hello and welcome! 👋 I'm <strong>Saja Ahmed</strong>, and I’m so glad you're here. Let me tell you a little about myself.</p>
<p>Ever since I was in <em>middle school</em>, I have been fascinated by technology. I remember being curious about computers, software, and how digital tools work. While most of my classmates were focused on traditional paths, I found myself drawn to anything that had to do with computers or software. But when it came time to choose a career path, I took a different road; I entered medical school.</p>
<p>During <em>my journey in medicine</em>, I was genuinely fascinated by the science of the human body, diseases, and how healthcare works. I enjoyed the subject learning, studying, and understanding, but when it came to real-life hospital work, I realized something important: <strong>it didn’t feel like my path</strong>. While I respected the clinical side of medicine, I couldn’t see myself doing it long-term: the patient follow-ups, the hospital rotations, and the constant hustle.</p>
<p>At the same time, there was something else growing quietly in the background: my love for technology. Every time I had a break from studies, whether during vacations or weekends, I would find myself diving into online courses, exploring programming tools, and learning how technology works. It wasn’t just a hobby anymore; it became a part of who I am. I kept thinking about how powerful it would be if I could combine both worlds: <em>healthcare and coding</em>.</p>
<p>Now, years later, I have found my path more clearly than ever. And that is what this blog series is about: <em>bringing together medicine and programming in a way that’s simple, approachable, and exciting.</em></p>
<h2 id="heading-what-this-series-is-about">🩺 What This Series Is About</h2>
<p>This series is for medical students, graduates, and healthcare professionals who feel like I once did, <strong>curious about tech, unsure where to start</strong>, and eager to make an impact beyond the hospital walls.</p>
<p>Over the next <strong>30 days</strong>, I will guide you through the basics of <strong>Python</strong>, one of the easiest and most useful programming languages to learn.</p>
<p>We'll keep it:</p>
<ul>
<li><p>✅ Simple and beginner-friendly</p>
</li>
<li><p>🩺 Focused on healthcare-relevant examples</p>
</li>
<li><p>🧠 Practical with hands-on mini challenges</p>
</li>
<li><p>🌱 Motivation to keep going</p>
</li>
</ul>
<h2 id="heading-whats-coming-up-tomorrow">📅 What’s Coming Up Tomorrow?</h2>
<p>In <strong>Episode 2</strong>, we’ll start with the very basics:</p>
<p>💬 What is Python? Why do so many people in healthcare, AI, and research use it?</p>
<h2 id="heading-lets-learn-together">🙌 Let’s Learn Together</h2>
<p>You don’t need to be a programmer. You just need a bit of curiosity, and you already have that if you’re reading this.</p>
<p>So let’s learn together, one day at a time, one line of code at a time.<br />This is <strong>The Medical Coder’s Path</strong>, and I’m so excited you’re here.</p>
<p>See you tomorrow! 👩‍⚕️👨‍💻</p>
]]></content:encoded></item><item><title><![CDATA[What is Machine Learning? A Simple Guide for Medical Professionals]]></title><description><![CDATA[Technology is transforming healthcare more than ever before, and at the heart of this transformation is a powerful tool called machine learning.
But what exactly is machine learning? And why should someone in the medical field care?
In this post, we’...]]></description><link>https://blog.sajamedtech.com/what-is-machine-learning-a-simple-guide-for-medical-professionals</link><guid isPermaLink="true">https://blog.sajamedtech.com/what-is-machine-learning-a-simple-guide-for-medical-professionals</guid><category><![CDATA[Machine Learning]]></category><category><![CDATA[Supervised Machine Learning]]></category><category><![CDATA[medical]]></category><category><![CDATA[hospitals]]></category><category><![CDATA[doctor]]></category><category><![CDATA[AI]]></category><category><![CDATA[Unsupervised learning]]></category><dc:creator><![CDATA[Saja Ahmed]]></dc:creator><pubDate>Thu, 10 Jul 2025 15:38:51 GMT</pubDate><content:encoded><![CDATA[<p>Technology is transforming healthcare more than ever before, and at the heart of this transformation is a powerful tool called <strong>machine learning</strong>.</p>
<p>But what exactly <em>is</em> machine learning? And why should someone in the medical field care?</p>
<p>In this post, we’ll explore what machine learning means, how it works in simple terms, and how it's being applied in modern healthcare.</p>
<hr />
<h3 id="heading-what-is-machine-learning">🤖 What is Machine Learning?</h3>
<p>Machine learning (ML) is a type of artificial intelligence (AI) that enables computers to <strong>learn from data</strong> and <strong>make predictions or decisions</strong> without being explicitly programmed for every task.</p>
<p>In simpler terms:</p>
<blockquote>
<p>Instead of writing rules for a computer, we give it examples (data), and it finds patterns and learns from them.</p>
</blockquote>
<hr />
<h3 id="heading-a-medical-analogy">🩺 A Medical Analogy</h3>
<p>Imagine you’re training a medical student to identify pneumonia on a chest X-ray.</p>
<ul>
<li><p>Traditionally, you’d <strong>teach them rules</strong>: look for opacities, consider the patient’s symptoms, etc.</p>
</li>
<li><p>But in machine learning, you’d give a computer <strong>thousands of labeled X-rays</strong>—some with pneumonia, some without.</p>
</li>
<li><p>The algorithm <strong>learns the patterns</strong> on its own by analyzing the data.</p>
</li>
<li><p>Later, when it sees a new X-ray, it can predict: “This patient likely has pneumonia.”</p>
</li>
</ul>
<hr />
<h3 id="heading-why-machine-learning-matters-in-healthcare">🔍 Why Machine Learning Matters in Healthcare</h3>
<p>Machine learning is becoming essential in modern healthcare because it can:</p>
<ul>
<li><p>Handle <strong>large volumes of data</strong> (e.g., lab tests, imaging, EHRs)</p>
</li>
<li><p><strong>Predict outcomes</strong> (e.g., patient survival, readmission risks)</p>
</li>
<li><p><strong>Detect anomalies</strong> earlier than humans (e.g., cancer detection)</p>
</li>
<li><p><strong>Personalize treatments</strong> based on a patient’s specific data</p>
</li>
</ul>
<p>It helps physicians and researchers make more informed decisions, reduce errors, and improve patient care.</p>
<hr />
<h3 id="heading-types-of-machine-learning">🧩 Types of Machine Learning</h3>
<p>Machine learning can be divided into three major types:</p>
<hr />
<h4 id="heading-1-supervised-learning-most-common-in-healthcare">1. <strong>Supervised Learning</strong> (most common in healthcare)</h4>
<p>You provide the algorithm with both the <strong>input data</strong> and the <strong>correct output</strong> (like a diagnosis).</p>
<p><strong>Examples:</strong></p>
<ul>
<li><p>Predicting the <strong>risk of heart disease</strong> based on blood pressure, cholesterol, and lifestyle</p>
</li>
<li><p>Classifying <strong>mammograms</strong> as benign or malignant</p>
</li>
<li><p>Forecasting <strong>hospital length of stay</strong> for admitted patients</p>
</li>
</ul>
<hr />
<h4 id="heading-2-unsupervised-learning">2. <strong>Unsupervised Learning</strong></h4>
<p>The algorithm explores the data and finds <strong>patterns or clusters</strong> without knowing the “correct” answer.</p>
<p><strong>Examples:</strong></p>
<ul>
<li><p>Grouping patients with <strong>similar symptoms</strong> or treatment responses</p>
</li>
<li><p>Identifying <strong>hidden subtypes</strong> of diseases like diabetes or depression</p>
</li>
</ul>
<hr />
<h4 id="heading-3-reinforcement-learning">3. <strong>Reinforcement Learning</strong></h4>
<p>The algorithm learns by <strong>trial and error</strong>, often used in simulations.</p>
<p><strong>Examples:</strong></p>
<ul>
<li><p>Optimizing <strong>treatment plans</strong> in oncology over time</p>
</li>
<li><p>Improving ICU resource management in real time</p>
</li>
</ul>
<hr />
<h3 id="heading-how-is-ml-different-from-ai">🧠 How Is ML Different From AI?</h3>
<p>Here’s a simple breakdown:</p>
<ul>
<li><p><strong>Artificial Intelligence (AI)</strong>: The big idea—machines acting intelligently</p>
</li>
<li><p><strong>Machine Learning (ML)</strong>: A type of AI that learns from data</p>
</li>
<li><p><strong>Deep Learning</strong>: A more advanced type of ML, used in analyzing complex data like MRI scans or natural language (doctor’s notes)</p>
</li>
</ul>
<hr />
<h3 id="heading-real-life-applications-in-healthcare">🏥 Real-Life Applications in Healthcare</h3>
<p>Machine learning is already being used in real hospitals and research labs. Some examples include:</p>
<ul>
<li><p><strong>Medical Imaging</strong>: Detecting fractures, tumors, or pneumonia from X-rays and CT scans</p>
</li>
<li><p><strong>Predictive Analytics</strong>: Identifying high-risk patients for ICU admission</p>
</li>
<li><p><strong>Clinical Decision Support</strong>: Recommending treatments based on guidelines and patient history</p>
</li>
<li><p><strong>Drug Discovery</strong>: Speeding up the process of testing new molecules</p>
</li>
<li><p><strong>Electronic Health Records (EHR)</strong>: Detecting errors or missing diagnoses from patient records</p>
</li>
</ul>
<hr />
<h3 id="heading-a-common-concern-will-ai-replace-doctors">💡 A Common Concern: Will AI Replace Doctors?</h3>
<p>No. Machine learning is not here to replace healthcare professionals—it’s here to <strong>support</strong> them.</p>
<p>Think of ML as an intelligent assistant that helps you:</p>
<ul>
<li><p>Save time on routine tasks</p>
</li>
<li><p>Catch things you might miss</p>
</li>
<li><p>Make better, data-driven decisions</p>
</li>
</ul>
<p>Your clinical judgment will always be essential.</p>
<hr />
<h3 id="heading-conclusion">🔚 Conclusion</h3>
<p>Machine learning is not just a buzzword—it’s a practical tool already making a difference in how we diagnose, treat, and manage disease. As a medical professional, understanding the basics of ML will help you stay ahead and participate in shaping the future of healthcare.</p>
<p>In the next post, we’ll dive into a specific machine learning method called <strong>regression</strong>, which can predict outcomes like <strong>hospital length of stay</strong>, <strong>blood pressure trends</strong>, or <strong>lab values</strong>—all using simple data you already work with.</p>
]]></content:encoded></item></channel></rss>