<?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 Vader on Medium]]></title>
        <description><![CDATA[Stories by Vader on Medium]]></description>
        <link>https://medium.com/@vaderjain?source=rss-5bcfae765ae0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RlftUOOovwElzgzWncxLBQ.png</url>
            <title>Stories by Vader on Medium</title>
            <link>https://medium.com/@vaderjain?source=rss-5bcfae765ae0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:08:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vaderjain/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[Welcome to Python!]]></title>
            <link>https://vaderjain.medium.com/welcome-to-python-f9b72d1ae87?source=rss-5bcfae765ae0------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9b72d1ae87</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python-for-beginners]]></category>
            <category><![CDATA[python-for-everyone]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[programming-languages]]></category>
            <dc:creator><![CDATA[Vader]]></dc:creator>
            <pubDate>Fri, 26 Feb 2021 07:14:26 GMT</pubDate>
            <atom:updated>2021-02-26T07:14:26.260Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vU4fVA5eYi6H0Ih6YIHwFw.jpeg" /></figure><p>Being a Computer Science engineer (the nerd in the pic) who is about to complete graduation in a few months, I found python to be one of the easiest to learn languages and also have various implementations and high demand in the market.</p><p>Like every python professional once did, you need to download and install python from the official website.</p><p><a href="https://www.python.org/downloads/">Download Python</a></p><p>Installed? Welcome to the family. Now you need a place to write all those python codes that you will learn. I would recommend downing PyCharm but there other great options as well.</p><p><a href="https://www.jetbrains.com/pycharm/download/">Download PyCharm: Python IDE for Professional Developers by JetBrains</a></p><p>You are done with all the installation for now. Don’t be intimidated by the dialog boxes and new feel. Just create a new project so you can start writing your code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*jWm76Q5dp6JSo2Ao40iwTw.png" /></figure><p>There were probably a few more buttons you had to click to finally reach a screen you can code on but I know you are smart and I am assuming you are here.</p><p>Learning theory is as mundane as it gets so just watch the video given below and let&#39;s create something! Wanna straight up spam ‘The Bee Movies’ subtitles on someones WhatsApp using 5 lines of python code. Yes? Well okay, but you probably wouldn’t understand the code right now. So we will do it in the blog and video. Let’s make something less dubious yet still fun.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FrP4i9nSihTo%3Fstart%3D3%26feature%3Doembed%26start%3D3&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DrP4i9nSihTo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FrP4i9nSihTo%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/5be9f7da9c7b3d38ec81ddb154e9f32c/href">https://medium.com/media/5be9f7da9c7b3d38ec81ddb154e9f32c/href</a></iframe><p>Ever heard of MAD-LIBS! You are about to program it on python. Let’s just clear the prerequisites real quick. We can ask the user for an input using guess what? ‘input()’! See, that is how easy python is. We use ‘print()’ to have output. That’s all you need to know to create mad-libs.</p><p>Ask the user for all the answers to the blanks, we do that using “input(‘enter a noun:’). This will prompt the user ‘enter a noun:’, user can of course enter any string. You can store the input in a variable [x = input(‘enter a noun:’)]. Now we can print the input along with our mad-lib[print(‘hit me with’, x)]. See what I did there, x will be replaced by your input. Do notice that there is a comma before x and after the string.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*4F54tXKo8lA0COw6Vf6Ohw.png" /></figure><p>Now you know the input-output stuff so we can finally make the game. First, take all the inputs you need to fill the mad-libs line by line. It should look like the image.</p><p>You can ignore the three print statements at the top. After that, I have stored the inputs in variables with reasonable names. The variable names should be something that is easy to interpret.</p><p>After you are done with taking inputs, get started with the print statements that will print your mad-lib along with the variables. I would encourage you to find a way to do the next step yourself. If you get an error, try googling it. It’s the most important skill for a programmer. You can also just enjoy the show for now and have a peek at the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*lL-LIKjt8Em__vsDf_Nhjg.png" /></figure><p>You can also copy the code from <a href="https://github.com/genesis-vader/mad-lib/blob/main/mad-libs.py">here.</a> Press shift+f10 to run the code in PyCharm. You can also do it from the nav bar at the top. This is how it looked like when I filled it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*XA-CwgeU1rygfkFZ6ojHJA.png" /></figure><p>LMFAO right? Well, that’s good enough for day 1. Subscribe to my channel for similar content on youtube. Thanks. [ <a href="https://www.youtube.com/channel/UCooE8zo5-SpawrqN6Bgwz2w">Link to my channel </a>]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9b72d1ae87" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>