<?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 Ashutosh Pathak on Medium]]></title>
        <description><![CDATA[Stories by Ashutosh Pathak on Medium]]></description>
        <link>https://medium.com/@pathak-ash?source=rss-ea7f750285dd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*BGshRMrwQsZ02tBZ52kTBw.jpeg</url>
            <title>Stories by Ashutosh Pathak on Medium</title>
            <link>https://medium.com/@pathak-ash?source=rss-ea7f750285dd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 10:17:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pathak-ash/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[Chatbots vs AI Chatbots vs Agents: What are they?]]></title>
            <link>https://medium.com/@pathak-ash/chatbots-what-are-they-99e328acd68c?source=rss-ea7f750285dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/99e328acd68c</guid>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[chatbot-development]]></category>
            <category><![CDATA[ai-chatbot]]></category>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[chatbot-design]]></category>
            <dc:creator><![CDATA[Ashutosh Pathak]]></dc:creator>
            <pubDate>Thu, 05 Dec 2024 17:05:54 GMT</pubDate>
            <atom:updated>2024-12-05T17:17:23.629Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I am going to discuss what chatbots are, their different kinds, and how to differentiate between a simple chatbot, an AI chatbot, and a virtual agent.</p><p>In the next article, I am going to talk about AI-enabled chatbots and show how we can use <a href="https://botpress.com/">botpress.com</a> to create one. So stay tuned and let’s begin!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IoU60gO8OrU4-c5p" /><figcaption>Photo by <a href="https://unsplash.com/@akurakuu?utm_source=medium&amp;utm_medium=referral">kuu akura</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Table of contents</h3><ol><li><a href="#7d37">What are chatbots?</a></li><li><a href="#d3d6">Types of Chatbot</a></li><li><a href="#8ff1">Chatbot vs AI Chatbot vs Virtual Agent</a></li></ol><h3>What are chatbots?</h3><p>At its core, a chatbot is a tool that seeks to understand customer queries and respond automatically (without a human present). It simulates written and spoken human responses.</p><p>But there are many different kinds that you can employ for your specific use case. Let’s take a look at some of the most important ones below.</p><h3>Types of chatbot</h3><p>In today’s landscape, where the term “AI” is used so loosely, in order to make an AI-enabled chatbot (in the next article), we need to first understand what even an AI-enabled chatbot is.</p><p>Essentially, there are two kinds of chatbots:</p><ol><li>Rules-based chatbots</li><li>AI-based chatbots</li></ol><p>Let’s talk about each of them briefly. If you’re already familiar with these concepts, then skip to the next section.</p><h4>Rules-based chatbots</h4><p>These chatbots are the ones we have been using for well over a decade now. They are implemented based on specific rules and have limited options for the user (usually presented as a list of buttons or a menu within the chat interface). Their design often follows a dialog tree structure where each branch is designed with respect to a specific question a user can ask. You can imagine how involved this kind of chabot design can get!</p><p>Some examples of these chatbots are Domino&#39;s Dom. This is a bot that presents you with a pre-defined set of questions and, based on your selections, goes down a specific path until you reach the most specific option (in this case, choosing all the toppings and condiments).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TR_oclnhHwoCYQwuH_KR_g@2x.png" /><figcaption>Using Domino’s Dom to order a pizza</figcaption></figure><p>Within rules-based chatbots, there are even more subcategories, such as <strong>menu-based chatbots</strong> and <strong>simple voice-based chatbots</strong> (IVRs). Essentially, the users have to choose an option from a scripted menu, and depending on the user&#39;s choice, the chatbot asks another set of options until it reaches the most specific option. The output from these kinds of chatbots is dependent on pre-written content from conversation designers.</p><p>These are best for automating simple processes like providing basic information and answering repetitive and straight-forward questions like FAQs.</p><h4>AI-based chatbots</h4><p>These chatbots employ various AI technologies to make the conversation even smoother compared to those in rules-based ones. There are two kinds of AI chatbots: contextual (intelligent) chatbots and generative AI-based chatbots.</p><p>The <strong>contextual chatbots</strong> use Natural Language Processing (NLP) and Machine Learning (ML) techniques to detect relevant contextual information and ask clarifying questions when unsure. These were dominant and actively developed before the advent of generative AI-based technologies like ChatGPT came into being. Their adaptability was only limited to the specific workflow they were designed for, and they could not be used for anything else. They are still perfectly suitable for customer support and personal assistant like use cases.</p><p>The <strong>generative AI-based chatbots</strong>, on the other hand, are highly adaptable and are able to personalize their responses based on user inputs. They can also improve over time, offering increasingly tailored and relevant responses. They are also often multimodal, meaning they can understand text, images, and voice inputs from the users, making the chat experience very convenient. But they also need vast amounts of data and compute resources to train effectively. Depending on their pre-training and post-training data quality, they could be susceptible to hallucinations, bias, and data privacy issues.</p><figure><img alt="Image of the ChatGPT text input field with the mouse pointing on the new ‘web search’ icon" src="https://cdn-images-1.medium.com/max/1024/0*7TCW33LtfLN_sOBy" /><figcaption>Source: <a href="https://openai.com/index/introducing-chatgpt-search/">https://openai.com/index/introducing-chatgpt-search/</a></figcaption></figure><h3>Chatbots vs AI Chatbots vs Virtual Agents</h3><h4>Chatbot</h4><p>A chatbot is a catch-all term. Essentially, it is any software simulating human conversation. It could be either decision-tree-like or conversational.</p><h4>AI Chatbot</h4><p>AI chatbots specifically employ a variety of AI technologies, from ML to NLP to GenAI (NLU and NLG), to interpret and match user questions to intent.</p><h4>Virtual Agent</h4><p>These pair AI technologies with Robotic Process Automation (RPA) giving them the ability to perform actions based on user inputs. They can act directly on the user’s intent without any human intervention.</p><p>The venn diagram below sums this conversation up roughly:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rkTImp1O3jU9eeBIheKzOA.png" /><figcaption>chatbot vs ai chatbot vs agents shown as a venn diagram</figcaption></figure><p>This article is written entirely from my own research on the topic and not at all using any kind of AI (except probably grammarly). So if you learned anything new from this article, <strong>please don’t forget to clap</strong> 👏🏽 in multiples of 5. This will motivate me to keep writing such articles.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99e328acd68c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why You Should Not Use Linear Regression for Classification]]></title>
            <link>https://medium.com/@pathak-ash/why-you-should-not-use-linear-regression-for-classification-945f0896dc10?source=rss-ea7f750285dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/945f0896dc10</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[logistic-regression]]></category>
            <category><![CDATA[linear-regression]]></category>
            <category><![CDATA[classification]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Ashutosh Pathak]]></dc:creator>
            <pubDate>Wed, 21 Aug 2024 03:35:59 GMT</pubDate>
            <atom:updated>2024-08-21T14:18:35.464Z</atom:updated>
            <content:encoded><![CDATA[<p>The answer might be surprising, but first, let’s review what linear and logistic regression do.</p><h3>Linear Regression</h3><p>Linear regression is one of the simplest and effective supervised learning algorithm to <em>predict the response Y</em> on the basis of input X. <strong>Simple Linear Regression</strong> which uses a single predictor variable to predict a quantitative response. There is also <strong>Multiple Linear Regression</strong> which assigns different slope to each predictor in a single model to predict the response to a more complex problem.</p><h3>Logistic Regression</h3><p>Logistic regression, rather than modeling this response variable Y directly, models the <em>probability</em> that Y belongs to a given category.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UgGusrtxvR2gr483" /><figcaption>Photo by <a href="https://unsplash.com/@lukechesser?utm_source=medium&amp;utm_medium=referral">Luke Chesser</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Now, you might have heard people saying that you should only use this model if the response variable is quantitative (can be any real value R). Technically, it is possible to use linear regression even for qualitative (categorical) response variables, but why don’t people use it?</p><h4>Example</h4><p>Let’s assume a simple example of medical diagnosis of patients. A patient can only have one of three diagnoses: a stroke, an epileptic seizure, and paralysis. We are not really concerned about the input at the moment. We can codify this response variable, Y, as follows:</p><blockquote>Y = 1 if stroke, 2 if epileptic seizure, 3 if paralysis</blockquote><p>Using this coding, we can use the least squares error to fit a linear regression model to predict Y. But this will go wrong in two ways:</p><ol><li><em>This codification implies an ordering in the output variable putting epileptic seizure between stroke and paralysis.</em></li><li><em>It assumes that the difference between stroke and epileptic seizure is the same as that of epileptic seizure and paralysis. There is no reason that this will be the case in practice.</em></li></ol><p>So what’s stopping us from choosing an equally reasonable coding: <em>Y = 1 if paralysis, 2 if stroke, 3 if epileptic seizure</em></p><p>Well, nothing. But this would give us a totally different relationship among the three conditions hence producing a fundamentally different linear model giving a different set of predictions on the test set.</p><p>If the response variables were naturally ordered like <em>mild, moderate, and severe</em> and we decided that the gap between all of them was the same, then a 1, 2, 3 coding would make sense. But usually there is no natural way to convert a categorical response with more than two levels (categories) into a quantitative response ready for linear regression.</p><p>Linear regression would work better for a binary case because we could then fit it to the binary response and predict, say, paralysis if Y &gt; 0.5 and stroke otherwise, assuming <em>Y = 0 if stroke, 1 if paralysis </em>coding. Even if you flip the coding the output would still be the same.</p><p>For this reason, it is preferable to <strong>use a classification approach with categorical variables having more than two categories</strong> such as Logistic Regression.</p><blockquote>If you liked this post, please consider giving 30 claps and follow me for more such byte-sized articles.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=945f0896dc10" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Handle Missing Data In Machine Learning]]></title>
            <link>https://medium.com/@pathak-ash/how-to-handle-missing-data-in-machine-learning-e1bbf8e9c51c?source=rss-ea7f750285dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1bbf8e9c51c</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-preprocessing]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Ashutosh Pathak]]></dc:creator>
            <pubDate>Sat, 17 Aug 2024 22:42:00 GMT</pubDate>
            <atom:updated>2024-08-17T22:42:00.841Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ha7G9UKSCsO4Y434" /><figcaption>Photo by <a href="https://unsplash.com/@kmuza?utm_source=medium&amp;utm_medium=referral">Carlos Muza</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Dealing with missing data is a common challenge in machine learning, as it can have a significant impact on the accuracy and reliability of the model. There are several approaches to handling missing values, and it is important to choose the most appropriate one for your dataset and machine learning task. In this article, we will discuss some important ways to handle missing values in machine learning.</p><h3>Deletion</h3><p>One option for handling missing values is deletion, which involves removing the rows or columns containing missing values from the dataset. Here are two common ways to do it using pandas:</p><ol><li><strong>Drop rows with missing values</strong>: You can use the DataFrame.dropna() method to drop rows containing any missing values. By default, this method will drop rows with any missing values, but you can specify the axis, how, and thresh parameters to customize the behavior. For example, to drop rows with missing values in any column, you can use the following code:</li></ol><pre>import pandas as pd<br>df = pd.read_csv(&quot;data.csv&quot;)<br>df.dropna(inplace=True)</pre><p>To drop rows with missing values in all columns, you can set the how parameter to &#39;all&#39;:</p><pre>df.dropna(how=&#39;all&#39;, inplace=True)</pre><p>To drop rows with missing values in at least a certain number of columns, you can set the thresh parameter to the minimum number of non-missing values required:</p><pre>df.dropna(thresh=2, inplace=True)</pre><ol><li><strong>Drop columns with missing values</strong>: You can use the DataFrame.dropna() method to drop columns containing any missing values. To do this, set the axis parameter to 1. For example:</li></ol><pre>df.dropna(axis=1, inplace=True)</pre><p>This will drop all columns with at least one missing value. You can also specify the how and thresh parameters to customize the behavior, as described above.</p><p>It is important to carefully consider the impact of deleting missing values on your dataset and your machine learning task. If the proportion of missing values is small and the remaining data is sufficient for the task, then deletion may be a suitable approach. However, if the missing values are spread throughout the dataset, or if they are concentrated in certain columns, then deleting the rows or columns with missing values may remove a lot of valuable data and compromise the performance of the model.</p><h3>Imputation</h3><p>Another way to handle missing values is to impute them, or fill them in, with some suitable value. scikit-learn (sklearn) is a popular Python library for machine learning that provides several tools for handling missing data.</p><p>To handle missing data using the imputation method in sklearn, you can follow these steps:</p><ol><li>Import the SimpleImputer class from the impute module.</li><li>Create an instance of the SimpleImputer class, specifying the strategy and any other desired parameters. The strategy parameter specifies the imputation method to use, and can be set to &#39;mean&#39;, &#39;median&#39;, &#39;most_frequent&#39;, or &#39;constant&#39;.</li><li>Use the fit() method to fit the imputer to the data.</li><li>Use the transform() method to apply the imputation to the data.</li></ol><p>Here is an example of how to handle missing data using the imputation method in sklearn, using the ‘mean’ imputation strategy:</p><pre>import pandas as pd<br>from sklearn.impute import SimpleImputer</pre><pre># Read the data<br>df = pd.read_csv(&quot;data.csv&quot;)</pre><pre># Create the imputer<br>imputer = SimpleImputer(strategy=&#39;mean&#39;)</pre><pre># Fit the imputer to the data<br>imputer.fit(df)</pre><pre># Apply the imputation<br>df_imputed = imputer.transform(df)</pre><p>It is important to carefully consider the impact of imputing missing values on your dataset and your machine learning task. The appropriate imputation strategy will depend on the characteristics of the data and the requirements of the model. Mean imputation may work well if the data is approximately normally distributed, but may not work well if the data is heavily skewed or has outliers. Median imputation may be a more robust approach when the data is skewed or has outliers. Most frequent imputation is suitable for categorical data, but may not be appropriate for continuous data. Constant imputation can be useful for preserving the structure of the data, but may not be representative of the underlying distribution.</p><h3>Prediction</h3><p>The prediction method involves using machine learning models to predict the missing values based on the available data. This approach requires additional data preparation and may be more computationally intensive than the deletion or imputation methods.</p><p>To handle missing data using the prediction method in Python, you can follow these steps:</p><ol><li>Split the dataset into two subsets: one containing the features with missing values, and the other containing the features without missing values.</li><li>Train a machine learning model on the subset without missing values. You can use any suitable model, such as a linear regression model, a decision tree, or a neural network.</li><li>Use the trained model to make predictions for the missing values in the other subset.</li><li>Combine the two subsets and replace the missing values with the predicted values.</li></ol><p>Here is an example of how to handle missing data using the prediction method in Python, using a linear regression model:</p><pre>import pandas as pd<br>from sklearn.linear_model import LinearRegression</pre><pre># Read the data<br>df = pd.read_csv(&quot;data.csv&quot;)</pre><pre># Split the data into two subsets<br>df_features_with_missing = df.loc[:, df.isnull().any()]<br>df_features_without_missing = df.loc[:, df.notnull().all()]</pre><pre># Train the model on the subset without missing values<br>X = df_features_without_missing.values<br>y = df_features_with_missing.values<br>model = LinearRegression()<br>model.fit(X, y)</pre><pre># Make predictions for the missing values<br>X_missing = df_features_with_missing.values<br>y_pred = model.predict(X_missing)</pre><pre># Replace the missing values with the predicted values<br>df_features_with_missing.values = y_pred</pre><pre># Combine the two subsets<br>df_imputed = pd.concat([df_features_with_missing, df_features_without_missing], axis=1)</pre><p>It is important to carefully consider the impact of using the prediction method on your dataset and your machine learning task. This approach can potentially improve the performance of the model, but it requires additional data preparation and may be more computationally intensive. It may also be more sensitive to overfitting, especially if the dataset is small or the model is complex.</p><h3>Special Ways For Handling Missing Values</h3><p>Some machine learning algorithms have built-in mechanisms for handling missing values. For example, decision trees can handle missing values by simply splitting the data on the missing values, while some neural networks can handle missing values by using a separate masking layer. If you are using one of these algorithms, you may not need to explicitly handle missing values as part of the data preparation process.</p><h3>Conclusion</h3><p>In summary, handling missing values is an important aspect of machine learning, and it is essential to choose the most appropriate approach for your dataset and task. Options include deletion, imputation, and prediction, and the best choice will depend on the characteristics of the data, the amount of missing data, and the computational resources available. It is important to carefully consider these factors in order to obtain accurate and reliable results.</p><p>For more such articles, you can keep visiting <a href="https://thenumbercrunch.com/">my blog</a> repeatedly. I try to post articles as regularly as I can so keep an eye out. In order to learn how to handle missing data practically, you can follow <a href="https://www.kaggle.com/code/alexisbcook/missing-values">this</a> great Kaggle tutorial. Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1bbf8e9c51c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configuring A Virtual Environment In Python]]></title>
            <link>https://medium.com/@pathak-ash/configuring-a-virtual-environment-in-python-527c71785cbc?source=rss-ea7f750285dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/527c71785cbc</guid>
            <category><![CDATA[setup]]></category>
            <category><![CDATA[environment]]></category>
            <category><![CDATA[installation]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[virtual]]></category>
            <dc:creator><![CDATA[Ashutosh Pathak]]></dc:creator>
            <pubDate>Sat, 17 Aug 2024 22:38:01 GMT</pubDate>
            <atom:updated>2024-08-17T22:38:01.589Z</atom:updated>
            <content:encoded><![CDATA[<p>In my <a href="https://thenumbercrunch.com/how-to-install-python-on-macos/">previous article</a>, I mentioned installing virtualenv to isolate environments and using them instead of using the global python environment for specific projects. The process of installing and configuring virtual environments is fairly easy, but I instructed you guys to follow <a href="https://www.youtube.com/watch?v=N5vscPTWKOk&amp;t=1s">Corey Schafer’s video</a> in order to do so. Well, here I explain similar steps in short.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*u88m_qTTW_a0YOhn" /><figcaption>Photo by <a href="https://unsplash.com/@theshubhamdhage?utm_source=medium&amp;utm_medium=referral">Shubham Dhage</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Virtualenv is a tool used to isolate specific Python environments on a single machine, allowing you to work on multiple projects with different dependencies and packages without conflict. It is particularly useful when you have multiple Python projects with conflicting package requirements. This article will go through the steps to set up and use virtualenv with Python.</p><h3>Setting up virtualenv</h3><p>Before you can use virtualenv, you need to install it. You can install virtualenv using pip, the Python package manager. Open a terminal and run the following command:</p><pre>pip install virtualenv</pre><p>This will install virtualenv on your system.</p><h3>Creating a virtual environment</h3><p>To create a virtual environment, go to the directory where you want to store your project and run the following command:</p><pre>virtualenv env</pre><p>This will create a new directory called env, which will contain the Python executable and the packages required for your project. The env directory can be named anything you like.</p><h3>Activating the virtual environment</h3><p>To use the virtual environment, you need to activate it. To activate the environment, run the following command:</p><pre>source env/bin/activate</pre><p>This will change your terminal prompt to show the name of the virtual environment you are using. For example, if the name of your virtual environment is env, your terminal prompt will change to (env)$. This indicates that the virtual environment is active.</p><h3>Installing packages in the virtual environment</h3><p>Now that the virtual environment is active, you can install packages in it using pip. For example, to install the numpy package, run the following command:</p><pre>pip install numpy</pre><p>This will install the numpy package in the virtual environment. Note that the package will not be installed globally on your system, but only in the virtual environment.</p><h3>Deactivating the virtual environment</h3><p>To deactivate the virtual environment, run the following command:</p><pre>deactivate</pre><p>This will deactivate the virtual environment, and your terminal prompt will revert back to the normal prompt.</p><h3>Using a virtual environment with a Python script</h3><p>To use a virtual environment with a Python script, you can use the #! shebang at the top of the script to specify the path to the Python executable in the virtual environment. For example, the first line of the script should be:</p><pre>#!/path/to/virtualenv/env/bin/python</pre><p>This will ensure that the Python interpreter used to run the script is the one from the virtual environment.</p><h3>Conclusion</h3><p>Virtualenv is a useful tool for isolating Python environments and managing package dependencies for different projects. It allows you to work on multiple projects with different package requirements without conflicts. By following the steps outlined in this article, you can set up and use virtualenv to manage your Python environments and packages.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=527c71785cbc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Install Python on MacOS Sonoma]]></title>
            <link>https://medium.com/@pathak-ash/how-to-install-python-on-macos-sonoma-c73bf5d098e6?source=rss-ea7f750285dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/c73bf5d098e6</guid>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[environment]]></category>
            <category><![CDATA[installation]]></category>
            <dc:creator><![CDATA[Ashutosh Pathak]]></dc:creator>
            <pubDate>Sat, 17 Aug 2024 21:26:07 GMT</pubDate>
            <atom:updated>2024-08-17T21:40:12.169Z</atom:updated>
            <content:encoded><![CDATA[<p>Since macOS Sonoma doesn’t come with the pre-installed python, many people face difficulty understanding why they can’t use python out of the box on their MacBook. I also met a similar issue which led me down this rabbit hole where I learned how to install python on my MacBook with macOS Sonoma, and set up a virtual environment for my first python project. I will help you do both today as quickly as possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RFs9KvCfD___zvPD" /><figcaption>Photo by <a href="https://unsplash.com/@nampoh?utm_source=medium&amp;utm_medium=referral">Maxim Hopman</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Step 1: Install Python</h3><p>First things first, you need to install python. Since the python 2 lifecycle is virtually over, there’s no other option but to go with the latest release of python 3. This is the better option as official and community support for the latest version usually lasts long.</p><p>You need to first check whether you already have an installation of a python instance on your system. We need to check this because maybe you installed an application and python was a dependency for it so without you knowing python was installed. Open your terminal and run: python3 --version, if you see something like Python 3.x.x then you already have python 3 installed and you can jump to the next step. Instead, if you see something like command not found: python3 then it means you don&#39;t have any python instances installed.</p><pre>python --version<br>zsh: command not found: python</pre><p>I already had Python 3 installed, so I used python to demonstrate how it would look.</p><p>To install Python 3:</p><ul><li>Go to <a href="https://www.python.org/">https://www.python.org</a> and click on Downloads.</li><li>At the top, where it says ‘Download the latest version for macOS’, there should be a ‘Download Python 3.x.x’ button.</li><li>Click it and download the latest version.</li><li>After downloading, follow the on-screen instructions to install it, keeping all the options default.</li><li>Once installed, close the terminal window and reopen it. Run the same command and you should see something like this:</li></ul><pre>python3 --version<br>Python 3.11.1</pre><blockquote>Note: If you want to download any older version of python 3 for some reason, you can scroll down on this page and select whichever version of python 3 you want. Also, If you want to use the ‘python’ command instead of python3, have a look at <a href="https://askubuntu.com/questions/320996/how-to-make-python-program-command-execute-python-3">this</a> stack overflow post to understand its ramifications.</blockquote><h3>Step 2: Set Up A Virtual Environment</h3><p>You can start working on your python project right away after you’ve successfully installed a python instance, but there’s another, cleaner, way. You can set up a virtual environment for your project. Setting up a virtual environment is a crucial step in ensuring that your package installations are not just a bunch of uncategorized clutter on your system. In short, a virtual environment helps you de-clutter your python packages once you have too many of them.</p><p>You need to install the virtualenv package for this. You can install it using the command pip3 install virtualenv . Basically, virtualenv is a tool to create isolated Python environments. There&#39;s a <a href="https://www.youtube.com/watch?v=N5vscPTWKOk">great tutorial</a> on this by Corey Schafer, you should go and watch it. I can&#39;t imagine I can explain it any simpler than he did, although I have tried to write a shorter version of it <a href="https://thenumbercrunch.com/configuring-python-virtual-environment/">here</a>.</p><h3>Step 3: Start Your Project</h3><p>Once you’ve completed setting up a virtual environment, activate that environment and start installing your required packages. These packages will only be available inside this environment. In the environment, you can use pip3 and python3 commands if you&#39;d like, but you don&#39;t have to. The environment links pip and python to their respective globally installed versions. So you can basically use pip and python commands inside this virtual environment because they point to version 3.</p><p>To confirm that the packages installed in this virtual environment are isolated, you can run pip list and see the list of packages you&#39;ve installed. Then deactivate the environment and run pip3 list and compare both lists. You&#39;ll see that they are different.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c73bf5d098e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Boolean, If-else and Loops]]></title>
            <link>https://medium.com/@pathak-ash/boolean-if-else-and-loops-7a5855712fbd?source=rss-ea7f750285dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a5855712fbd</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[boolean]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[loop]]></category>
            <dc:creator><![CDATA[Ashutosh Pathak]]></dc:creator>
            <pubDate>Sat, 08 Jul 2017 17:06:33 GMT</pubDate>
            <atom:updated>2024-08-17T22:34:09.975Z</atom:updated>
            <content:encoded><![CDATA[<h3>Boolean, If-else, and Loops</h3><p>Though I’ve studied C++ in my high school, I had to learn Python from it’s roots (from scratch). This gave me a clearer perspective of the language and prevented me from mixing up the concepts (mostly syntax). Doing something from scratch requires a lot of patience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2I6E0Pox85Gnlp-pgjm99g.png" /></figure><p>I completed exercises 27–33 in two days. This might seem a lot to some and it actually is, in fact if you’re new to programming, these seven exercises are where the foundation of <em>real</em> programming is laid; this is where it all starts. For a huge portion of this course we were just printing stuff predefined in the code itself, not caring what the user wants from it. Now the program starts to become more “responsive” and “smart” but also “complex” and “sophisticated”.</p><p>This doesn’t mean that you’re not going to get lost in what’s about to happen but it will just take a little bit more of your time and effort to understand it. Once you do, it’s just a walk in the park.</p><h3>Boolean</h3><p>I know most of you might’ve studied Boolean in their high school but i’m gonna brief it to you anyway (for those who’ve not). Boolean is nothing but the common logic that we use everyday. Every decision we make comes down to two choices — yes or no, true or false. Boolean is no different. It also has two decision to make — true or false i.e., 0 or 1. Very easy, just memorizing the tables will take you far enough (exercise 27 and 28).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*jrsdhOlSSu6g-HjyiXA2Eg.png" /><figcaption>AND operation (Courtesy: <a href="https://en.wikipedia.org/wiki/Truth_table">Wikipedia</a>)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*sKPgFAhym7glS-xWrL9MvA.png" /><figcaption>OR operation (Courtesy: <a href="https://en.wikipedia.org/wiki/Truth_table">Wikipedia</a>)</figcaption></figure><h3>if-else and if-elif-else</h3><p>Then comes if-else (exercise 29 and 30), quite simple! It translates to “if <em>this </em>happens, do <em>something</em>, else, do <em>something else</em>.” Also there’s elif (else, if = elif) which is used between starting if and the ending else. It translates to “if <em>this </em>happens, do <em>something</em>, else, if (=elif) <em>this </em>happens do <em>something else</em>, else do <em>some other thing</em>.” I hope you got the point. Here’s a great example:</p><pre><strong>&gt;&gt;&gt; </strong>x = int(raw_input(&quot;Please enter an integer: &quot;))<br>Please enter an integer: 42<br><strong>&gt;&gt;&gt; if</strong> x &lt; 0:<br><strong>... </strong>    x = 0<br><strong>... </strong>    <strong>print</strong> &#39;Negative changed to zero&#39;<br><strong>... elif</strong> x == 0:<br><strong>... </strong>    <strong>print</strong> &#39;Zero&#39;<br><strong>... elif</strong> x == 1:<br><strong>... </strong>    <strong>print</strong> &#39;Single&#39;<br><strong>... else</strong>:<br><strong>... </strong>    <strong>print</strong> &#39;More&#39;<br><strong>...</strong><br>More</pre><p>After that there’s a very exciting exercise, ex 31. In this, the author explains the concept of nested-if very well by giving a very good practical example: A game! Yes, a game just like <a href="https://en.wikipedia.org/wiki/Zork">Zork</a>! (a very miniature version). After writing this game and running it, you should be able to get the concept of if-else pretty easily. You can play the game (a version of it) <a href="http://textadventures.co.uk/games/view/5zyoqrsugeopel3ffhz_vq/zork">here</a> if you want.</p><h3>Loops</h3><p><em>for</em> loops are traditionally used when you have a block of code which you want to repeat a fixed number of times. The Python <em>for</em> statement iterates over the members of a sequence in order, executing the block each time. In contrast with the <em>for</em> statement, the <a href="https://wiki.python.org/moin/WhileLoop">‘’while’’ loop</a> is used when a condition needs to be checked at each iteration, or to repeat a block of code forever. For example:</p><p><em>For loop from 0 to 2, therefore running 3 times.</em></p><pre><strong>for</strong> x in <strong>range</strong>(0, 3):<br>    <strong>print</strong> &quot;We have <strong>%d</strong> pizzas remaining.&quot; % x</pre><p><em>While loop from 1 to infinity, therefore running forever.</em></p><pre>x = 1<br><strong>while</strong> True:<br>    <strong>print</strong> &quot;To infinity and beyond! We&#39;re getting close, on <strong>%d</strong> now!&quot; % x<br>    x += 1</pre><p>Also the study drills of the while-loop exercise i.e., ex.33 is very good. I recommend not to skip any of the study drill from this exercise. That’s all for today. Thanks for reading!</p><blockquote>This article is part of a challenge-series <a href="https://medium.com/@4shutoshPathak/15-days-of-python-c4153993ef2e"><strong><em>15 Days of Python</em></strong></a><strong><em> </em></strong>in which I challenge myself to learn Python in 15 days from <a href="https://learnpythonthehardway.org/">lpthw</a>. This is also my first series or articles I’ve written ever, so basically i’m just a newborn baby in the writing field. It would mean a lot to me if you guys could give feedback on my content, how is it, how it should be, what you guys think, just any feedback is hugely appreciated. Also if you liked this article, please consider sharing it with others and recommending with a heart. ❤</blockquote><p><em>Hello guys! I’m Ashutosh Pathak, and I’m an undergrad student from India. I’m learning all sorts of stuff from the web. I am most fascinated by Machine Learning and its applications in real world. This is my journey towards learning, understanding and implementing ML models, all by myself. So come and hop along, for an unforgettable adventure!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a5855712fbd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Practice is all you need]]></title>
            <link>https://medium.com/@pathak-ash/practice-is-all-you-need-e03a8edb266d?source=rss-ea7f750285dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/e03a8edb266d</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[challenge]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[practice]]></category>
            <dc:creator><![CDATA[Ashutosh Pathak]]></dc:creator>
            <pubDate>Thu, 06 Jul 2017 11:55:30 GMT</pubDate>
            <atom:updated>2024-08-17T22:32:53.459Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sIMS5_GVCHk7BTZ4WayozA.jpeg" /><figcaption>Photo by <a href="http://unsplash.com/photos/5fNmWej4tAA?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Helloquence</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>When I started learning Python about a week and a half ago, I didn’t knew I could do this much in such a short time. I’m about halfway there. At least that’s what the author says at the start of the exercise 26! (of <a href="https://learncodethehardway.org/python/">lpthw</a>).</p><p><strong>Practice.</strong> That’s what today’s article is all about. From <a href="https://learnpythonthehardway.org/book/ex22.html"><em>exercise 22</em></a><em> to </em><a href="https://learnpythonthehardway.org/book/ex26.html"><em>exercise 26</em></a>, the focus is on practice.<strong> Memorize, Remember, Understand.</strong> This is what the author says to focus on and he’s correct (mind the order). First memorize. It doesn’t matter if you understand the thing at the moment, you’re gonna understand it eventually but not until you remember it! So <a href="http://wikidiff.com/memorize/remember">after memorizing, remember it</a> (or try to). It’s gonna take some time but it’s totally worth it! Now you know everything’s name by heart, good.</p><p>Start writing scripts of your own, it’ll be tough in the beginning, you’ll probably have to refer from here and there to get to know where to start, what to write next, etc. But while doing so, slowly you’ll begin to understand that stuff. Then you’ll no longer be needing to ”look for stuff” every time you get stuck somewhere. This thing, right here, is called <strong>practicing</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*koQWEl13CWVLPNkkrP6ExQ.jpeg" /></figure><p><em>The best way to practice programming is to do it on paper</em>. Just writing down the code on a sheet of paper will help you so much you can’t even think of! I’m not kidding! Okay think of it like this, when you type in a code on a computer, usually the auto-filler, or whatever it’s called, automatically fills the space of the upcoming word so you do not have to think much and type much. You just have to know the first letter of any thing and bam! the software shows you a list of words, in which one is probably yours. This is totally wrong for people who are just<em> beginning</em> to learn programming! If you just start writing code on a piece of paper, you’ll use your brain more to remember these things which will be good for you in the long term.</p><p>I’m very excited for after exercise 26 because the boring part is over. Now we really get to create some cool stuff instead of just printing things. I may have completed the exercises 22–26 in a day, but if you’re just a beginner in programming (like lpthw is your first course or whatever in programming) do as the author says. Take two full weeks to go through these (at least). So, see you guys tomorrow for the next one!</p><blockquote>This article is part of a challenge-series <a href="https://medium.com/@4shutoshPathak/15-days-of-python-c4153993ef2e"><strong><em>15 Days of Python</em></strong></a><strong><em> </em></strong>in which I challenge myself to learn Python in 15 days from <a href="https://learnpythonthehardway.org/">lpthw</a>. This is also my first series or articles I’ve written ever, so basically i’m just a newborn baby in the writing field. It would mean a lot to me if you guys could give feedback on my content, how is it, how it should be, what you guys think, just any feedback is hugely appreciated. Also if you liked this article,<em> please consider sharing it with others and recommending with a heart. ❤️</em></blockquote><p><em>Hello! I’m Ashutosh Pathak, an undergrad Computer Science student from India. I’m learning all sorts of stuff from the web and I am most fascinated by Machine Learning and its applications in real world. This is my journey towards learning, understanding and implementing ML models, all by myself. So come and hop along, for an unforgettable adventure!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e03a8edb266d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[More Functions]]></title>
            <link>https://medium.com/@pathak-ash/more-functions-10b03b8f5aae?source=rss-ea7f750285dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/10b03b8f5aae</guid>
            <category><![CDATA[challenge]]></category>
            <category><![CDATA[function]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Ashutosh Pathak]]></dc:creator>
            <pubDate>Tue, 04 Jul 2017 17:50:46 GMT</pubDate>
            <atom:updated>2024-08-17T22:30:46.428Z</atom:updated>
            <content:encoded><![CDATA[<h4>15DOP : Don’t be afraid of functions!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rjlNaggjGNskvIzTREm-Qw.jpeg" /><figcaption>I swear I saw a function lurking behind those trees!!</figcaption></figure><h3>This is part of <a href="https://medium.com/@4shutoshPathak/15-days-of-python-c4153993ef2e">15 Days of Python</a> series</h3><p>In the last exercise, while doing study drill 3, I faced quite a challenge with the add function. I didn’t know how to get a ‘number’ from a function (in Python), so it took a while for me to get to it. But when I started the next exercise I found out that Zed already covered that here! I was quite satisfied and relieved when I found that out because I did it already in the last exercise.</p><p>So, in <a href="https://learnpythonthehardway.org/book/ex20.html"><strong>Exercise 20</strong></a>, we make three functions. The first one (print_all) reads from a file and prints all the contents from that file. The second one (rewind) takes the cursor in the file back to the zeroth element (i.e., back to the start). Notice the use of <a href="https://docs.python.org/2/library/stdtypes.html?highlight=seek#file.seek"><em>seek</em></a> function here (this is an inbuilt function, already present in Python’s library/database). The third one (print_a_line) takes two arguments, the line number and the file, and prints that line number and the corresponding line from the file using the <a href="https://docs.python.org/2/library/readline.html"><em>readline</em></a> function. After that, it’s just about calling the functions at the required places.</p><p>The study drills were quite easy (you know i’m right if you’ve put in some effort yourself!).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T3ywdBrZBRpXeXLfvH31-g.png" /><figcaption>After running the exercise 20 script.</figcaption></figure><p><a href="https://learnpythonthehardway.org/book/ex21.html"><strong>Exercise 21</strong></a><strong> </strong>was, by far, the easiest exercise containing functions! Really, I mean it’s literally just addition, subtraction, multiplication and division. That equation at the last was also fairly easy (for some people, it might not). Nothing much to tell about that. Study drills are also easy.</p><p>Again, if you are not understanding all that’s been happening in the previous exercises, it’s okay. As the author says, it might take you maybe till ex33 for all of this to start making sense or maybe even till the end it’s hard and at the last moment it clicks! You won’t know when it’s gonna happen. You just gotta keep doing it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9SYsB-Am5d1cm-uuKRMF7g.png" /><figcaption>After running exercise 21 study drills script.</figcaption></figure><p><a href="https://learnpythonthehardway.org/book/ex22.html"><strong>Exercise 22</strong></a> and <a href="https://learnpythonthehardway.org/book/ex23.html"><strong>23</strong></a> really helps catching some breath. These are like the revision exercises. Let’s you sink it all! If you’re thinking to skip it, don’t!</p><blockquote>Thanks for reading this article! An article is published daily on this series (15 Days of Python), so stay tuned for more. If you liked this post, please consider sharing it with others and recommending with a heart. <em>❤</em></blockquote><p><em>Hello guys! I’m Ashutosh Pathak, and I’m an undergrad student from India. I’m learning all sorts of stuff from the web. I am most fascinated by Machine Learning and its applications in real world. This is my journey towards learning, understanding and implementing ML models, all by myself. So come and hop along, for an unforgettable adventure!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10b03b8f5aae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Files and Functions]]></title>
            <link>https://medium.com/@pathak-ash/files-and-functions-c04834e73493?source=rss-ea7f750285dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/c04834e73493</guid>
            <category><![CDATA[challenge]]></category>
            <category><![CDATA[function]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Ashutosh Pathak]]></dc:creator>
            <pubDate>Mon, 03 Jul 2017 18:06:47 GMT</pubDate>
            <atom:updated>2024-08-17T22:29:50.833Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>15 days of Python</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_8KC_UYBpuGZCwmW9PlcrQ.jpeg" /><figcaption>Files right!?</figcaption></figure><p><strong>Exercise 17</strong> wasn’t too difficult to understand. Here, all program (or script, I like to call it a program) does, is <em>copy contents of one file (let it be file1) to the other (let it be file2)</em>. Yes, that’s it. It just copies contents from one file to another file which may or may not be empty. If the file (file2) isn’t empty and contains some important information (why would you do that!?) then boy, oh boy, you’re in big trouble!</p><p>That’s because the file to which the contents of other file is copied (i.e. file2) is being opened in ‘write’ mode. What write mode does is, it first deletes all of the things which were present in the file already, and then writes the stuff which its supposed to. In this case, replicate the contents of an other file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FGd0CH7aOB3ouddm9-glmQ.png" /><figcaption>‘write’ mode encircled</figcaption></figure><p>When you run the program again and again, you really can’t see what’s the difference before and after running it (if you’re using same file each time to copy the contents from). So <em>I </em>wrote the script such that the file opens in ‘append’ mode which is denoted by an ‘a’ instead of ‘w’. In append mode, the newly added stuff is added right after where the contents of the file ends.</p><p>About the ‘echo’ and ‘cat’ thing, you don’t <em>need</em> to learn that. It’s just a fancier way of creating a file and then putting some text in it which you can do without the command line.</p><p>Oh and I totally forgot to tell you about a ‘not so big’ problem I had (but it was quite frustrating). While following the Study drills, I encountered something. It was not an error, rather it was an anomaly in how the <em>windows</em> saves a .txt file (at least I think so). On running the program, it copied the text from the test.txt file but what appeared in new_file.txt was in Japanese!! I tried to figure out myself what the problem was but failed. Eventually I found out that it was an encoding problem! new_file.txt was encoded UTF-16 and test.txt was UTF-8 encoded. So to solve that problem I had to convert it to UTF-8.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DZpaxDvTP_-ZgGlkcqltbA.png" /><figcaption>Japanese?!! WHY?? HOW??</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XOLapY3lKsOnHY2d9E-QBQ.png" /><figcaption>To convert a file to UTF-8 do this ^</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JstYw3fPIbVlFpZeO2uYdg.png" /><figcaption>And then do this!</figcaption></figure><p><strong>Exercise 18</strong> is very, very easy. Its just about <em>creating functions (or as the author says, mini-scripts)</em>. Nothing much to talk about here except that ‘<em>*args</em>’ thing. I was quite confused after seeing *args and i mistook it for a <em>pointer </em>(it looks just like this, more on this later), but soon i figured it out and realized that it’s just like <em>argv</em> which contains just a list of arguments. Study drill for this exercise is totally worth it. I highly recommend doing it exactly as the author says.</p><p><strong>Exercise 19 </strong>is more or less like exercise 18. The difference is that in this exercise, author tells different ways to call a function. The real challenge is the Study drills 3 of this exercise. I tried to create a function to do simple addition yet I failed several times. Here are some of the screen shots of my errors (Hi five if you got the same!).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BIHhs2RlseeLFkaPETA9DQ.png" /><figcaption>Iterating my code to figure out why add() function is not giving a ‘number’ outcome</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N2bm_jHXi3Z5KQtYeRQ5Hw.png" /><figcaption>Trying different ways to get the result from add() in int form</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pfIlaFntaQEy74qwl3L3yQ.png" /><figcaption>Finally fixed it!!</figcaption></figure><p>As you can see, finding bugs could be quite exhausting and frustrating (it took me about <em>20–30 minutes </em>to figure out the solution to that error!!). You just have to be focused, dedicated and most importantly, <em>calm, </em>to figure something out.</p><blockquote>Thanks for reading this article! An article is published daily on this series (15 Days of Python), so stay tuned for more. If you liked this post, please consider sharing it with others and recommending with a heart. <em>❤</em></blockquote><p><em>Hello guys! I’m Ashutosh Pathak, and I’m an undergrad student from India. I’m learning all sorts of stuff from the web. I am most fascinated by Machine Learning and its applications in real world. This is my journey towards learning, understanding and implementing ML models, all by myself. So come and hop along, for an unforgettable adventure!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c04834e73493" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[15 days of Python]]></title>
            <link>https://medium.com/@pathak-ash/15-days-of-python-c4153993ef2e?source=rss-ea7f750285dd------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4153993ef2e</guid>
            <category><![CDATA[15-day]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[challenge]]></category>
            <dc:creator><![CDATA[Ashutosh Pathak]]></dc:creator>
            <pubDate>Sun, 02 Jul 2017 13:57:28 GMT</pubDate>
            <atom:updated>2017-07-04T17:55:48.105Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SuTOR_VK64dGCTEsBXThsw.jpeg" /></figure><p>I gave myself a challenge today<strong>. Can I learn Python in 15 days?</strong> And would it be enough to get me started with my ML Journey? I guess I’ll know that at the end of this series.</p><p>I’ve wanted to learn Python for a very long time, (well above a year) but I couldn’t, because of my college, and of course, procrastination. Actually the bigger factor of those two would be procrastination and I know for a lot of you this situation would be “familiar”. So I finally decided to start learning Python on my own. I wanted a place which had <em>good content along </em>a<em> “Free” tag</em> (I’m in college and money’s a little tight for me). So, after doing a descent amount of research, I found out about <a href="https://www.learnpythonthehardway.org/"><strong>learnpythonthehardway.org</strong></a>. And soon after doing 3–4 exercises, I realized that for the people who want to learn Python themselves, this website is actually quite amazing! The technique used by the author Zed A. Shaw to teach us is (although being debated by some) pretty good. You <em>should</em> check it out yourself!</p><p>Now, I started learning this about a week ago and at the moment of writing this, <em>I’ve completed 16 exercises already</em>. So it’s more like “Learn Python in 15 days, after completing 16 exercises”. Although it would take not more than <em>two to three</em> days for you to get to exercise 16th depending on how much time you devote (maybe even less).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nKgvnz_7QU1tIIUBKU04eg.png" /><figcaption>Doing exercise 17 from lpthw (Yes, i use Windows.)</figcaption></figure><p>Some of you might wonder, <strong>why 15 days</strong>? Why now? Well there’s no good reason for it, it’s just my semester break will end in 15 days. Also I’ve been</p><p>Now, <em>why</em> I decided to post this challenge (series of posts) online? You all know how much we fear public humiliation, right! Well I guess this will motivate me to learn Python everyday for the next 15 days. I will post everyday what I learnt and which resources I used for that particular topic. If you guys want to follow along, you are totally welcome. But first complete those 16 exercises, they’re pretty straight-forward. And where ever you get stuck, do as the author says. Also don’t forget to join the Gitter chat room of LPTHW. It’s link is in that website. Zed always replies.</p><p>For those of you who are wondering what ML is, its the abbreviation of Machine Learning and is a huge chunk of what we call Artificial intelligence (or AI).</p><p><em>Hello guys! I’m Ashutosh Pathak, and I’m an undergrad student from India. I’m learning all sorts of stuff from the web. I am most fascinated by Machine Learning and its applications in real world. This is my journey towards learning, understanding and implementing ML models, all by myself. So come and hop along, and stay tuned!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4153993ef2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>