<?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 Yash Suresh Jaikar on Medium]]></title>
        <description><![CDATA[Stories by Yash Suresh Jaikar on Medium]]></description>
        <link>https://medium.com/@yashjaikar?source=rss-170914e9fa0f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Yash Suresh Jaikar on Medium</title>
            <link>https://medium.com/@yashjaikar?source=rss-170914e9fa0f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 03:35:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yashjaikar/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[From Scratch to Code: Building a Classic Hangman Game in Python]]></title>
            <link>https://yashjaikar.medium.com/from-scratch-to-code-building-a-classic-hangman-game-in-python-d2ab919146a9?source=rss-170914e9fa0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2ab919146a9</guid>
            <category><![CDATA[python-game]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[funtions-python]]></category>
            <category><![CDATA[python-list]]></category>
            <category><![CDATA[while-loop]]></category>
            <dc:creator><![CDATA[Yash Suresh Jaikar]]></dc:creator>
            <pubDate>Tue, 10 Nov 2026 10:45:27 GMT</pubDate>
            <atom:updated>2026-11-10T10:49:18.947Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A beginner-friendly guide to building your own interactive command-line word game using Python basics like loops, lists, and string manipulation.</em></p><p>When you are first learning Python, tutorials can sometimes feel a bit dry. Printing text to a console or working through math formulas is important, but nothing beats building an interactive game that you can actually play.</p><p>Recently, I decided to test my Python skills by building a classic <strong>Hangman Game</strong> entirely from scratch in the terminal. No external libraries, no complex frameworks — just pure Python logic, loops, and conditional statements.</p><p>In this article, I’ll walk you through how the game works, the core concepts I used, and the complete, ready-to-run code!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*tnBRVGmFKCzLRLgRNgzZZg.jpeg" /></figure><h3>🌍 The Game Concept</h3><p>The rules of Hangman are timeless:</p><ol><li>The computer picks a secret word randomly from a list (in this version, we’re guessing global cities like <strong>Madrid, Singapore, and Vancouver</strong>!).</li><li>The word is hidden behind blanks (e.g., _ _ _ _ _ _).</li><li>You guess letters one by one.</li><li>If your guess is correct, the matching blanks fill up. If it’s incorrect, you lose one of your 6 lives.</li><li>Win by solving the word before your lives run out!</li></ol><h3>💻 The Complete Code</h3><p>Here is the clean, fully working Python script for the game:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*g7y_REAybl5YxgRPgO1W1w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*3241JA6mkqhIupdF3fO4Zw.png" /></figure><h3>🔍 Key Functionalities Explained</h3><p>Building this project taught me how several core Python features work together to create a smooth user experience:</p><h3>1. Dynamic Board Generation ([&quot;_&quot;] * len(secret_word))</h3><p>Instead of manually typing out blanks, Python lets us multiply a list. If the chosen word is &quot;madrid&quot; (length 6), [&quot;_&quot;] * 6 dynamically creates [&#39;_&#39;, &#39;_&#39;, &#39;_&#39;, &#39;_&#39;, &#39;_&#39;, &#39;_&#39;]. When printing, &#39; &#39;.join(guessed_word) formats it cleanly in the terminal with spaces between each underscore.</p><h3>2. Bulletproof Input Validation &amp; Duplicate Checking</h3><p>Handling user input can be tricky. We use two quick checks to protect the game from crashing or breaking:</p><ul><li><strong>Validation:</strong> len(guess) &gt; 1 or guess.isalpha() is False ensures the user only inputs a single alphabet letter. If they type numbers or multiple characters, the continue statement restarts the loop without penalizing them.</li><li><strong>Tracking:</strong> Storing guesses in guessed_letters allows us to instantly check if guess in guessed_letters: so players don&#39;t waste turns guessing the same letter twice.</li></ul><h3>3. Revealing Letters with enumerate()</h3><p>When a user guesses a correct letter, it might appear more than once in a word (like &#39;a&#39; in &quot;madrid&quot;). Using Python&#39;s built-in enumerate() function allows us to loop through the secret_word while tracking both the index and the character simultaneously, ensuring <em>every</em> matching position gets updated on the board:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*VM8egKHq3hwpFaFAdhFK5g.png" /></figure><h3>🚀 Final Thoughts</h3><p>Building a console-based game like Hangman is one of the most rewarding milestones for a beginner programmer. It forces you to think about <strong>state management</strong> (tracking lives, previous guesses, and board progress) and <strong>user flow</strong> in real-time.</p><p>If you’re learning Python, try taking this code and adding your own twist — like expanding the word list to countries, adding custom difficulty levels, or keeping track of a win/loss streak!</p><p>Happy coding! 🐍✨</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2ab919146a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Password Strength Checker — Using Python]]></title>
            <link>https://yashjaikar.medium.com/password-strength-checker-using-python-58f7f7eaef03?source=rss-170914e9fa0f------2</link>
            <guid isPermaLink="false">https://medium.com/p/58f7f7eaef03</guid>
            <category><![CDATA[string-methods]]></category>
            <category><![CDATA[password-security]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[for-loop-in-python]]></category>
            <category><![CDATA[if-else-in-python]]></category>
            <dc:creator><![CDATA[Yash Suresh Jaikar]]></dc:creator>
            <pubDate>Tue, 11 Aug 2026 12:37:27 GMT</pubDate>
            <atom:updated>2026-08-11T12:37:27.013Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>The Real-World Problem</em></strong><em>:</em> People often use weak passwords (Ex: “123456” or “password”) which are predictable and are prone to getting hacked.</p><p>Most of them aren’t sure what makes a password actually secure.</p><p><strong><em>How it built in Python</em></strong>: Use string methods and conditional statements (for/if — else ladder) to check if a user-entered password meets simple rules — like being longer than 8 characters, containing at least 2 numbers, having 1 uppercase letter and has 1 Special character (# or @).</p><p><strong><em>How does this work in background (Inside Python): </em></strong>When there is input taken from user, python determines the type of character in the “Input” using if, else loop. Characters are internally categorized as uppercase characters, special characters, numerical characters.</p><p><em>For Loop</em> — Iterates through the entered password. That is, all the elements/values in the entered password undergo a check process. Like the check is done using <em>if-elif-else (ladder) </em>— to check if any of the entered values are in upper case, followed by checking any values are alphabetical or not, followed by checking if any of the values are numeric and last check is to confirm if any of the values are special character. If any of the cases are true the values of the respective dummy variable get added with ‘1’. Once all the variables get updated after completion of else loop, the if else loop runs a final check to confirm if values stored in dummy variable has met the requirement. If the requirement has been met, a message with confirmation regarding the password compatibility gets resulted to output and if not met, it results to error message with the requirements to confirm the correct password.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u98_ngmdkSjuVsHsGQ8Yyw.png" /></figure><p>Referring to the snip above — Entered password “<em>Welcome@12” </em>contains — 2 digits, 1 special character and the length of the password is greater than 8 characters which matches with the password setting requirements for a normal use case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZiH9gkhG7Rn5sb7ia_g16A.png" /></figure><p>Referring to the snip above-Entered password “<em>welcome@123</em>” does not contain uppercase characters and hence does not match the password setting requirements.</p><p>Few example cases where password setting requirement has not been met.</p><p>Requirement of length of characters not met:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-OkmKdvEBFHGneze3stIUA.png" /></figure><p>Requirement of number of special characters not met:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pvuyRNTvoP7e70sevR9Fyg.png" /></figure><p>When entered password doesn&#39;t contain required number of numerical values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gL8W8-bnBwFcLdfhVvGSKA.png" /></figure><p>When Uppercase characters are not available in the password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NBD6vswgyifK62sE3GNARg.png" /></figure><p><strong><em>Conclusion: </em></strong>In today&#39;s world, where tech plays vital role in all of our daily usage and applications like phones password, emails password, UPI’s payments, desktop/laptop passwords, internet banking systems, social media account passwords and other technologies.</p><p>It is very mandatory that we use the correct formatting of the passwords and follow the basic steps of what a correct/valid password is.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58f7f7eaef03" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>