How To Run Multiple Python Versions On Windows?

Summary: You can run multiple versions of Python on Windows using one of the following methods: Using entire path to execute the code. Creating A Shortcut or Symbolic Link to the executable files. Using Pylauncher: Use Shebang (#) in The Script Run Pylauncher Command Using Virtual Environments. ➠ Problem Formulation: You might have two versions … Read more

How Does Tuple Comparison Work In Python?

A Quick Introduction To Tuples Python consists of 4 built-in data types that are used to store collections of data. These data types are: List Set Dictionary Tuple A tuple allows you to store multiple items within a single variable. Hence, it is a collection that is ordered and unchangeable/immutable. Also, tuples are heterogeneous as … Read more

How To Cut A String In Python?

Problem: Given a string; how to split/cut the string and extract the required characters? In this article, we will be discussing some interesting scenarios which allow us to split or cut a string and extract the necessary portion of the string that we need. Let us dive into each example/scenario and have a look at … Read more

How To Fix Error: ‘NoneType’ Object Has No Attribute ‘Group’?

Summary: NoneType attribute error occurs when the type of object being referenced is None. To handle this error you can either use the try-except blocks or you may also use if-else statements according to your requirement. In this article, you will learn about attribute errors with the help of numerous scenarios/examples where you come across … Read more

How To Install pip On Windows?

Summary: Download get-pip.py file in the desired folder ➨ Open command prompt and navigate to the location of the downloaded file and install PIP using the following command : python get-pip.py Overview pip is a package management tool in Python that allows us to install and manage external Python libraries and dependencies that are not … Read more

Simple Linear Regression

Introduction Regression is a supervised learning technique that defines the relationship between a dependent variable and the independent variable(s). Regression models describe the relationship between the dependent and independent variables using a fitting line. In the case of linear regression models, this is a straight line while in the case of logistic and nonlinear regression models a … Read more

Supervised And Unsupervised Machine Learning

Machine Learning algorithms can be majorly classified into four types: Supervised Learning Unsupervised Learning Semi-supervised Learning Reinforcement Learning In this article we will dive into supervised and unsupervised learning. Introduction to Supervised Learning In supervised learning, a sample labeled data is fed to the machine learning model to train it, based on which it predicts … Read more