<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Avanthika on Medium]]></title>
        <description><![CDATA[Stories by Avanthika on Medium]]></description>
        <link>https://medium.com/@avanthika2577?source=rss-02e30900d115------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*p3xxO2tEbJBRwfIM</url>
            <title>Stories by Avanthika on Medium</title>
            <link>https://medium.com/@avanthika2577?source=rss-02e30900d115------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 10:33:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@avanthika2577/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Python and my practice : My First Steps in Python]]></title>
            <link>https://medium.com/@avanthika2577/python-and-my-practice-my-first-steps-in-python-29a61520c3d5?source=rss-02e30900d115------2</link>
            <guid isPermaLink="false">https://medium.com/p/29a61520c3d5</guid>
            <dc:creator><![CDATA[Avanthika]]></dc:creator>
            <pubDate>Sat, 03 Oct 2026 15:47:31 GMT</pubDate>
            <atom:updated>2026-10-03T15:53:19.790Z</atom:updated>
            <content:encoded><![CDATA[<p>5 fundamental programming constructs, 19 practice problems, and the Number Guessing Game I built in my first weeks of college .</p><p>A few weeks ago I walked into KGiSL Institute of Technology as a first-year student. In school I had studied maths, science and a little bit of computers, but I had never written a real program. On the first day of programming class I was nervous. Everyone was talking about “Python”, “loops” and “functions”, and I wondered if I would ever understand it. Today I can proudly say I have solved 19 programming problems and built my first working game. This post is for every student who has just come from school to college and feels the way I did.</p><p>Why Python?</p><p>Python is one of the easiest programming languages to start with. Its instructions read almost like simple English, so you spend less time fighting the rules and more time solving problems. It is free, and it is used almost everywhere: artificial intelligence, data science, websites, automation and even robotics. Learning it in first year opens many doors later.</p><p>5 constructs, 19 problems, one theme</p><p>Every program, big or small, is built from a few basic ideas called programming constructs. Our course, Python: Fundamental Programming Constructs, teaches five of them through 19 short problems. The fun part is that every problem has the same theme: “Hello World Greetings”. We started by printing a simple greeting and ended by greeting people one character at a time!</p><p>1. Variables, Assignments and Arithmetic</p><p>“Memory is everything.”</p><p>In simple words: Storing values in named “boxes” and doing simple calculations with them.</p><p>Problem 1 VAA-1: Assign and print</p><p>Problem 2 VAA-2: Assign and print</p><p>Problem 3 VAA-3: Make sure the variables have the right values</p><p>Problem 4 VAA-4: Check variable types and their values</p><p>2. Sequential Programming</p><p>“Cooking recipe, step by step.”</p><p>In simple words: Writing steps in the right order, just like following a recipe.</p><p>Problem 5 SEQ-1: Receive a name and greet the person</p><p>Problem 6 SEQ-2: Read and greet two great people</p><p>Problem 7 SEQ-3: Read and greet the great first</p><p>Problem 8 SEQ-4: Transfer values between variables</p><p>3. Selection / Conditionals</p><p>“Decisions, decisions, decisions…”</p><p>In simple words: Making the program choose what to do based on a condition: if this, then that.</p><p>Problem 9 SEL-1: Conditioned greetings</p><p>Problem 10 SEL-2: Conditioned greetings for the Great</p><p>4. Repetitions / Loops</p><p>“Forever and forever…”</p><p>In simple words: Repeating steps a fixed number of times (definite loops) or until something happens (indefinite loops).</p><p>Problem 11 DL-1: Use a for loop to greet only 4 people</p><p>Problem 12 DL-2: Write “Sri Rama Jayam” Problem</p><p>13 DL-3: Write “Sri Rama Jayam” 2 Problem</p><p>14 ID-1: Greet as many people as there are</p><p>Problem 15 ID-2: Greet all the names until 42</p><p>5. Function Calls</p><p>“Anything and everything is only one function call away!”</p><p>In simple words: Packing steps into a named, reusable block and using the answer it gives back.</p><p>Problem 16 F-1: A very simple functional decomposition of print</p><p>Problem 17 F-2: Use a function to greet someone</p><p>Problem 18 F-3: Greeting printed one character at a time</p><p>Problem 19 F-4: Use the return value of a function meaningfully</p><p>Putting it together: the Number Guessing Game</p><p>Solving the problems one by one is good, but the real fun starts when you join the constructs. So I built a Number Guessing Game: the computer thinks of a number between 1 and 100, and the player has 7 chances to guess it. Here is how each construct helped:</p><ul><li>Variables and arithmetic: the secret number, the player’s name and the number of tries are stored in variables. A simple subtraction tells the player how many tries are left.</li><li>• Sequential steps: the game first greets the player by name, explains the rules and then starts, one step after another, just like a recipe.</li><li>• Selection: after every guess the game decides what to say: “Too high!”, “Too low!” or “Correct!”</li><li>• Loops: a definite loop gives the player exactly 7 chances. An indefinite loop keeps asking again whenever the player types something that is not a valid number, just like the “greet until 42” problem.</li><li>• Function calls: the secret number comes from a ready-made function that picks a random number. I also wrote my own small functions to ask for a guess and to check it, and used their return values to decide if the player has won.</li><li>The best part? This one small game uses all five constructs I practised in the 19 problems. When I played it for the first time and saw “Correct!” on my screen, I felt like a real programmer.</li><li>What I learned :</li><li>• Errors are teachers. Every red error message told me exactly what to fix.</li><li>• Break big problems into small steps. I built the game one small piece at a time.</li><li>• Practice beats talent. Thirty minutes of coding every day helped me more than reading for hours.</li><li><a href="https://medium.con/@gracecatherine">https://medium.com/@gracecatherine</a>65</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29a61520c3d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>