# Tag python programs

Python programming
python tutorials

## Power of Three using Python

The problem of the power of three is a popular coding interview question. Here we need to check whether the input value is the power of three or not. So, if you want to know how to solve this problem…

## Move Zeroes using Python

Moving zeroes is one of the popular questions in coding interviews. Here we need to move all the 0’s in an array to the end of the array while keeping the order of non-zero elements the same. So, if you…

## Ugly Number using Python

Ugly numbers are the numbers whose prime factors are limited to 2, 3, and 5. Finding the Ugly number is a popular question in coding interviews. Here you need to check if a number is an ugly number or not.…

The problem of adding digits is a popular coding interview question. Here we need to add all the digits of the integer till we get to a single-digit integer. So, if you want to know how to solve this problem using…

## Power of Two using Python

The problem of Power of Two is a popular coding interview question. Here we need to check whether the input value is the power of two or not. So, if you want to know how to solve this problem using Python, this…

## Check Duplicate Values using Python

The duplicate values problem is a popular coding interview question. Here we need to check if any value appears at least twice in an array. So, if you want to know how to solve this problem using Python, this article…

## Majority Element using Python

The majority element problem is one of the popular coding interview questions. Here we need to find the element that appears more than the other element in an array. So, if you want to know how to solve this problem,…

## Excel Sheet Column Title using Python

The excel sheet column title is one of the popular coding interview questions. Here we need to return the corresponding column title of an integer as displayed in an excel sheet. So, if you want to know how to solve…

## Single Number using Python

The Single Number problem is one of the popular coding interview questions. Here you will be given an array of integers where each item appears twice except for one that we need to find. So, if you want to know how…

## Best Free Courses to Learn Python

Python is one of the most popular programming languages today. It is preferred by Data Science professionals and Web Developers worldwide. There are a lot of free and paid courses on the internet to learn Python. So, if you are…

## Validate Palindrome Words using Python

Palindrome words are words that are read the same backward as forward. For example, mom, dad, and madam are palindrome words. Validating palindrome words is one of the popular coding interview questions. So, if you want to learn how to…

## Best Time to Buy and Sell Stock using Python

Finding the best time to buy and sell stocks is one of the popular coding interview questions. Here we need to return the maximum profit we can achieve from buying and selling a stock. So, if you want to learn…

## Pascal’s Triangle using Python

Pascal’s Triangle is one of the popular coding interview questions. It is asked in the coding interviews by FAANG companies many times. In Pascal’s Triangle problem, we need to return the number of rows of a Pascal’s Triangle. So, if…

## Climbing Stairs using Python

Climbing Stairs is one of the popular coding interview questions. It is asked in the coding interviews by FAANG companies many times. In the climbing stairs problem, you need to count the number of distinct ways to climb to the…

## Square Root using Python

Finding the square root of a number is asked in the coding interviews by FAANG companies many times. A square root is a number that produces the specified value when multiplied by itself. For example, 5×5 gives 25, so the square root…

## Plus One using Python

The Plus One problem is one of the popular coding interview questions. It is asked in the coding interviews by companies like FAANG many times. Here you need to increment the last digit of an array by one and return…

## Role and Responsibilities of a Python Developer

A Python Developer is one of the developers in the development team who works at the backend to create, design, debug and deploy applications using Python. If you are good at Python and looking for your first job as a…

## Remove Duplicates from a Sorted Array using Python

Removing duplicate values from a sorted array is one of the popular coding interview questions. It is asked in coding interviews by companies like FAANG many times. Here you need to return an array of unique values by removing all the…

## Merge Two Sorted Lists using Python

Merging two sorted lists is one of the popular problems in Leetcode. It is asked in coding interviews by companies like FAANG many times. Here you need to return a sorted list by merging two sorted lists. So, if you…

## Longest Common Prefix using Python

Longest Common Prefix is one of the popular problems in Leetcode. It is asked in coding interviews by companies like FAANG many times. Here you need to return the longest common prefix among all the strings in an array of…

## Two Sum using Python

Two Sum is a popular problem in Leetcode. It is often asked in coding interviews from companies like FAANG. Here you need to return the indices of integers from an array whose addition equals the target value. So, if you…

## Python Practice Questions for Coding Interviews

While learning a new programming language, it is valuable to solve practice questions. When you solve questions, it develops problem-solving skills. If you are learning Python and have completed the fundamentals of Python, your next step should be to solve…

## Find Missing Number using Python

Finding the missing number in an array is a popular coding interview question. According to LeetCode, this question is popular in the interviews of companies like Amazon, Adobe, Microsoft, LinkedIn, and many more. If you want to learn how to…

## Group Elements of Same Indices using Python

Grouping elements of the same indices means grouping elements of two or more data structures according to their indices. It is a tricky problem for beginners and can be asked in any coding interview. If you want to learn more…

## Number Guessing Game using Python

The number guessing game is a popular game among programmers. In the number guessing game, the program selects a random number between two numbers, and the user guesses the correct number. If you want to learn how to create a…

## Count Number of Words in a Column using Python

While working on a Data Science task, sometimes we have to deal with textual data. One of the problems beginners face while working on a textual dataset is counting the number of words in a piece of text. So if…

## Print Emojis using Python

Emojis are used to express our emotions while writing a message or any piece of text. If you want to learn how to display emojis in the output using the Python programming language, this article is for you. In this…

## Here’s How to Install Python on MacBook

Python is one of the best programming languages today. On macOS, Python is preinstalled and available to use. But people often find it hard to install the latest version of Python on macOS. So if you have just purchased a…

## Correct Spellings using Python

Correcting spellings in a piece of text is one of the handy features that can be used in any application where users write content. For example, if you want to create a notepad, it should have a feature to identify…

## Group Anagrams using Python

Anagrams are words formed by rearranging the letters of another word, For example, car and arc, cat and act, etc. Grouping anagrams is one of the popular questions in coding interviews. So if you want to learn how to solve…

## Best Python Courses in 2022

Python is one of the most valuable programming languages in the industry. It is preferred by data science professionals and web developers. If you are looking for a complete course to learn Python, this article is for you. This article…

## Python Project Ideas for Final Year

Many computer science students look for programming project ideas in their final year. Your final year project should be on a real-time problem. So if you are a final year student and looking for some Python project ideas, this article…

## Convert Pandas DataFrame to NumPy Array

One of the tasks while solving a machine learning problem using Python is to convert a Pandas DataFrame to a NumPy array. A pandas DataFrame is a DataFrame object that we use to work with data, and a NumPy array…

## Rock Paper Scissors Game using Python

Rock Paper Scissors is a hand game usually played between two people. In this game, scissors can beat paper, paper can beat rock, and rock can beat scissors. If you want to learn how to create a rock paper scissors…

## Scraping GitHub Profile using Python

Web scraping is one of the most valuable skills every coder should have. If you want to learn how to collect data from GitHub using web scraping techniques, this article is for you. In this article, I will take you…

## Generate Text using Python

Text generation involves generating text using machine learning techniques. The purpose of text generation is to automatically generate text that is indistinguishable from a text written by a human. If you want to learn how to generate text with Python,…

## Convert Two Lists into Dictionary in Python

A list is a collection of items provided by the Python programming language, whereas a dictionary in Python is used to store data into key and value pairs. If you want to learn about converting two Python lists into a…

## Extract Text From PDF with Python

Sometimes a Python developer needs to collect some text information from PDF files. So extracting text from a PDF is a problem you should know how to solve as a Python developer. If you want to learn how to extract…

## Visualize Linear Relationship using Python

A linear relationship is a statistical term that is nothing but the relationship between two variables. A linear relationship shows how well two variables x and y are related to each other. As a data science professional, you should know…

## Mean Median and Mode using Python

Mean, Median and Mode are the fundamentals of statistics used in almost every domain where we deal with numbers. Python is one of the best programming languages for numerical calculations. So you should know how to calculate mean, median and…

## Python Project Ideas for Beginners

Python is one of the best programming languages today. It is preferred by web developers and data science professionals around the world. When we learn a new programming language, it is important to work on some basic projects to improve…

## Break and Continue in Python

In Python, Break and Continue are statements executed inside a loop. These statements either skip according to the conditions inside loops or terminate loops at a point. If you want to learn all about the Break and Continue expressions in…

## Reverse a String using Python

A string is a sequence of characters enclosed in single or double-quotes. String inversion is one of the most common problems in computer science. Here we need to reverse the characters of a string. So, if you want to learn…

## Scrape Table from a Website using Python

Web Scraping is one of the skills that every data science professional should know. Sometimes the data we need is available on a website in the form of a table which cannot be downloaded directly from the website. To use…

## SequenceMatcher in Python

SequenceMatcher is a class in Python available in the difflib module, which provides functions for comparing sequences in two different pieces of text. So whenever you want to compare two text files, you can explore the difflib module in Python.…

## Reading and Writing CSV Files using Python

CSV (Comma Separated Values) files are the most commonly used file format for importing and exporting big datasets. The reason why a CSV file is preferred over an Excel file is that a CSV file consumes less memory as compared…

## Create Dummy Data using Python

If you are learning Data Science and find it hard to create a dataset for practice from scratch, you can either download a dataset from Kaggle or create fake data. If you want to learn how to create a dummy…

## Execution Time of a Python Program

The execution or running time of the program indicates how quickly the output is delivered based on the algorithm you used to solve the problem. To calculate the execution time of the program, we need to calculate the time taken…

## Remove Cuss Words using Python

Cuss Words are the words that make your language sound very impolite, rude, and culturally offensive. Sometimes we need to identify and remove cuss words from a piece of text. So if you want to learn to remove cuss words,…

## Find Duplicate Values using Python

Finding duplicate values from an array or any other data structure is one of the popular coding interview questions that you can get in any coding interview. The Python programming language provides many inbuilt functions to find the duplicate values,…

## Decode a QR Code using Python

Decoding a QR code means finding the value, number, text or link behind the QR code. There are many ways to decode a QR code used by your smartphone cameras, which helps you scan a QR code while making online…

## Python Project Ideas

Python is one of the most popular programming languages today. In 2022, Python will be used more in the industry with programming languages like Golang and JavaScript. If you are looking for a job as a Python developer, the first…

## QR Code using Python

A QR Code is a scannable code used to store information. QR codes are used to redirect you to a specific page or to show you some information. You must have scanned QR codes once in your life when making…

## Sentence and Word Tokenization using Python

Tokenization is the first step you should perform after collecting a textual dataset in every problem based on Natural Language Processing. Sentence and Word tokenization are two different strategies of tokenization that you should know. In this article, I will…

## Query Data using Python

Query data means requesting specific data from a dataset. If you are familiar with SQL, you must know what it means to query data, but if you use the pandas library in Python, you can still query data from your…

## Box Plot using Python

A box plot is a statistical data visualization technique for analyzing the distribution and patterns of numerical data points of a dataset. It represents quartile 1, quartile 3, median, maximum and minimum data points of a feature which helps to…

## Get Stock Price Data using Python

As machine learning practitioners, we need to collect stock price data for regression analysis and time series analysis. We can easily download it from Yahoo Finance. But imagine if we want to create an application where we can analyze the…

## Candlestick Chart using Python

A candlestick chart is a data visualization tool used to analyze the price movements of stocks, cryptocurrencies, currencies, and other financial instruments. If you work as a data scientist/analyst in the finance domain, a candlestick chart is one of the…

## Count Length of a String using Python

Finding the length of a string means counting the number of letters in a string. Python has a built-in len() function for this task, but what if you get a coding interview question to find the length of a string…

## Detect Questions using Python

Detecting questions means identifying whether a sentence is interrogative or not. We can also use machine learning to detect questions, but since we all know the type of sentences we see in an interrogative sentence, it is also possible to…

## Useful Python Scripts

There are some pieces of scripts or code that we generally use in the middle of several tasks daily. For example, whenever I work on a sentiment analysis task, I always use one common script to clean the text column…

## Drop Rows and Columns of a Pandas DataFrame in Python

Dropping rows and columns from a dataset helps in preparing the data so that we can filter the data for better understanding. When we are working on a data science task, we store the data in a Pandas DataFrame, and…

## Index of Maximum Value in a Python List

Finding the index of the maximum value in a list or an array is one of the most common coding interview questions you can get in any coding interview. Here you have to find the index of the maximum value…

## Word Cloud from a Pandas DataFrame in Python

A word cloud is a data visualization technique that shows the most used words in large font and the least used words in small font. It helps to get an idea about your text data, especially when working on problems…

## Send Instagram Messages using Python

By using a third-party application or API to manage the functionality of an application, you are automating the application. If you send messages, post photos or videos, or follow someone without opening your Instagram directly, that means you are automating…

## Voice Recorder using Python

A voice recorder is found in every smartphone and computer today. It is an application that is used to record sound and save it in a specific file format, which can be listened to and transferred to another device. If…

## For Loop Over Keys and Values in a Python Dictionary

Dictionaries are one of the most useful data structures in the Python programming language. A Python dictionary is used to store data in the form of key and value pairs. Most Python newbies get confused when iterating through a dictionary…

## Animated Scatter Plot using Python

A scatter plot is one of the most useful ways to analyze the relationship between two features. You must have used a scatter plot before if you are learning data science but have you ever tried to create an animated…

## Swap Items of a Python List

Swapping elements of a Python list is very similar to swapping values of the variables in Python. We use the index of the items to swap the position of the items, just like variables in Python. So if you want…

## Backward For Loop using Python

Using a for loop on any Python object is very easy as compared to other programming languages like C++ and Java. But have you ever tried using a for loop backwards? It’s as easy as a general for loop that…

## Index of Minimum Value in a Python List

Finding the index of the minimum value in a list or an array is one of the popular coding interview questions that you may get in any coding interview. Here you have to find the index of the minimum value…

## LCM using Python

LCM stands for Least Common Multiple, which means finding the smallest number that is a multiple of two or more numbers. If you want to learn how to find the LCM of two numbers using the Python programming language, then…

## Price Elasticity of Demand using Python

Price is one of the most important factors influencing the demand for a product. Elasticity refers to the degree of response, and the price elasticity of demand refers to the degree of responsiveness of demand for a product due to…

## Age Calculator using Python

Age Calculator is an amazing coding project idea for beginners. If you are new to any programming language, you should try making an age calculator. It is an application where a user enters his date of birth as an input,…

## Python Program to Count Most Frequent Words in a File

Counting the number of specific words in a file is something you need to know as a coder. Counting the most frequent words in a file is one of the coding questions you can get to solve in any coding…

## Python Program to Count Capital Letters in a File

Counting the number of specific letters from a file is something that every coder should know. One of the most popular coding interview questions based on this logic is to count the number of capital letters from a file. So…

## Python Program to Remove Spaces

Spaces are nothing more than a string in Python. To remove space from a Python string, you must treat it the same way you have removed any other character from a string. So if you want to learn how to…

## Python Program to Remove Odd or Even Numbers From a List

The list in Python is like the array of other programming languages. It is one of the most used built-in data structures in Python. So, during a Python coding interview, you may come across many questions based on Python lists.…

## Phone Number Details using Python

There are a lot of tasks where we want to extract the details of a person’s phone number. It can help the telecommunications industry as well as other businesses that deal with people’s problems with networks. If you want to…

## Collage Maker using Python

A collage maker is a tool used to merge different images into one. It allows you to save and share images as a collection of memories. You must have seen an option to create a photo collage on your smartphone…

## End-to-End Encryption using Python

End-to-end encryption is a system that ensures that only the users involved in the communication can understand and read the messages. Many applications use end-to-end encryption to protect their users’ data. So, if you want to know how to protect…

## Python Program to Find Seconds Per Day

There are 60 seconds in a minute, 3600 seconds in an hour, and 86400 seconds in a day. We can easily find the number of seconds in each day, hour, week or even a month as these are just simple…

## Remove Duplicates from a Python List

Removing duplicates from a Python list is one of the coding interview questions you may get to solve as a Python developer. So if you want to learn how to remove duplicate values from a Python list, this article is…

## Sum of Elements of a Python List

Python list is nothing more than a collection of elements used to perform operations on a collection of values at the same time. So, you can easily perform any mathematical operation on a Python list as that is the main…

## Shutdown Computer using Python

The OS module in Python is used in various tasks that depend on the operating system. You must have used it before when writing or reading files from your computer to your Python program. It can also be used to…

## Text to Handwriting using Python

There are so many amazing features in a smartphone for typing today, like converting a user’s handwriting to text, but what if you want to convert text to handwritten text? If you want to know how to convert text to…

## Internet Speed Test using Python

You must have checked the speed of your internet connection once in your life using platforms like speedtest.net. Have you ever thought about doing the same with Python? Well if you want to learn how to perform an internet speed…

## Create Font Art using Python

The font that appears in the output of your Python program is the default font for your operating system. Changing the font of your output may not be possible without using an external library. This is where the PyFiglet library in Python…

## Resize Image using Python

Resizing images is one of the most important tasks in image processing. Sometimes we have to resize the images while working with them. There are many libraries in Python that can be used for this task, so if you want…

## Calendar GUI using Python

A calendar is an application that helps organize days. You must have seen a calendar in your home, on your computer, and even on your smartphone. If you want to learn how to create a graphical user interface for a…

## String Formatting in Python

String formatting plays an important role when storing and transferring data in a way that anyone can easily understand. If you are new to the Python programming language and don’t know how to format strings to display the output, this…

## Resume Scanner using Python

A resume scanner is an application that scans all the keywords on a resume to match the skills and qualifications needed for a particular job. If you want to learn how to scan a resume using the Python programming language,…

Python is a very popular programming language among the data science community because it has many libraries and frameworks for working on different types of data. Sometimes we need to use machine learning algorithms on images rather than a textual…

## Get Live Weather Updates using Python

Have you ever thought about making an application where a user gives the name of a city and gets live weather updates about that city as an output? Well, in this article I am going to walk you through how…

## Swap Variables using Python

Swapping variables means assigning the value of variable a to variable b and vice versa. We have so many algorithms in computer science for swapping the values of two variables with each other, so in this article, I’m going to…

## Quartile Deviation using Python

Quartile deviation means the absolute measure of dispersion. It is the product of half the difference between the upper and lower quartiles (Quartile Deviation = (Q3 – Q1)/2). In this article, I will take you through how to calculate quartile…

Password Authentication is the process of checking the identity of a user. Almost every online platform today makes sure that they only give access to the real user which can be only possible by asking for a password while a…

## Python Program to Print Odd and Even Numbers

Writing a program to check whether a number is even or odd is one of the first algorithms we write when learning a new programming language. In this article, I’ll walk you through how to write a Python program to…

## Pyramid Pattern using Python

Creating patterns by using a programming language is not less than designing an algorithm for a beginner. One of the easiest patterns that you can create is a pyramid that looks like a triangle. So to get your hands on…

## Pick a Random Card using Python

There are so many card games today where you choose a card at random from a deck of cards to create an event. This is the feature of every card game today because you have to choose a card at…

## OTP Verification using Python

Do you know how you get a unique OTP every time you go through the payment process in an online transaction? Each company has its ways of creating an OTP for verification, but most of the companies have their systems…

## Remove Unicode Characters using Python

Unicode Characters can be defined as the smallest component of any language that has a semantic value. They are the combination of special values which represents special characters. In this article, I will take you through how to remove Unicode…

## Find Maximum Profit using Python

Finding the maximum profit while buying and selling stocks in the stock market is a great question for coding interviews at companies based on financial services. Here you are given an array of stock prices and transaction fees and what…

## Create Tables using Python

Python is a very easy and versatile programming language. It offers libraries and modules for almost every task that you can think about. While working with data using python sometimes it becomes difficult to present it in a tabular format…

## Count Character Occurrences using Python

Counting occurrences of a character in a string means counting all substrings of a character from the input string. This is one of the important questions you are asked in the coding interviews. In this article, I’ll walk you through…

## Validate Anagrams using Python

An Anagram is a word or phrase that forms a different word or phrase when the letters of a word are rearranged. For example, the words “despair” and “praised” are anagrams. In this article, I’ll walk you through how to…

## Python Program To Check Vowel

In this article, I will take you through how to write a Python program to check whether the given alphabet is a vowel or not. Vowels are one of the categories of speech sounds. We have all studied about them…

## Format Dates using Python

Formatting dates is one of the topics that every newbie faces when working with Python. When working with time-series data, formatting data and time is one of the most important topics for you. In this article, I’ll walk you through…

## Palindrome Words using Python

Palindrome words are those words that are read the same way from left to right as from right to left. Writing an algorithm to check whether a word is a palindrome or not is an important question in coding interviews.…

## Defang IP Address using Python

A user’s IP address is defanged to prevent the user from clicking on a malicious link. The problem with Defanginig IP addresses is one of the common coding interview questions for someone who is planning data science. In this article,…

## Create an Invoice with Python

An invoice is a bill that serves as proof of a transaction between a buyer and a seller. In this article, I will walk you through how to create an invoice with the Python programming language. Create an Invoice with…

## Real-time Currency Converter with Python

A currency converter is an application used to convert the value of one currency into another currency. In this article, I will take you through how to write a program to create a real-time currency converter with Python. How To…

## Encrypt and Decrypt using Python

Cryptography means changing the text of a message so that people who don’t know your secret never understand your message. In this article, I will create a GUI application to encrypt and decrypt using Python. How to Encrypt and Decrypt…

## Bitcoin Mining with Python

Bitcoin Mining is very much related to auditing. It means verifying the legitimacy of Bitcoin transactions. In this article, I will explain to you how to do Bitcoin Mining with Python. What is Bitcoin Mining? Bitcoin mining is part of…

## Hangman Game with Python

The Hangman game is very much like the popular number guessing game among programmers. In this article, I will take you through how to create a Hangman Game with Python. Understanding the Hangman Game In the hangman game, one player…

## Text-Based Adventure Game with Python

Text-Based Adventure Game is a very basic adventure game that any Python beginner can work on. In this article, I am going to walk you through how to make a very basic text-based adventure game with Python. What is a…

## URL Shortener with Python

You must have seen services on the internet to create short URLs from long ones used in various places. Short URLs are easy to remember or type, so they are very popular in the field of digital marketing and promotions.…

## Mad Libs Game with Python

MAD LIBS is one of the funniest word games in the world. Some would even call it one of the greatest puns ever. In this article, I’ll walk you through a simple task for beginners: Create a Simple Mad Libs…

## Acronyms Using Python

An acronym is a short form of a word created by long words or phrases such as NLP for natural language processing. In this article, I will walk you through how to write a program to create acronyms using Python.…

## Email Slicer with Python

An Email slicer is a very useful program for separating the username and domain name of an email address. In this article, I will explain how to write a program to create an Email Slicer with Python. Email Slicer with…

## Story Generator with Python

Do you think the most complex use of the random module in Python is random sampling? No, we can also generate random stories or anything beyond that using the random module. In this article, I’ll walk you through how to…

## Python Program to Generate Password

To create a password with Python, we need to create a program that takes the length of the password and generates a random password of the same length. In this article, I’ll walk you through how to write a Python…

## Rock Paper and Scissors with Python

In this article, I’ll walk you through how to make a rock, paper, and scissors game with Python. In the rock, paper and scissors game our goal is to create a command-line game where a user has the option to…

## Dice Roll Simulator with Python

The Dice Roll Simulation can be done by choosing a random integer between 1 and 6 for which we can use the random module in the Python programming language. In this article, I will take you through how to create…

## QR Codes with Python

QR is short for Quick Response, and they are named so because they can be read quickly by a cell phone. They are used to take information from transitory media and put it on your cell phone. In this article,…

It’s great to develop an app that reminds you of your plans like an alarm or a to-do list. In this article, I’ll walk you through how to write a program to get a desktop notification with Python. How Does…

## Python Program to Convert Roman Numbers to Decimals

One of the most favourite questions in a coding interview is to convert Roman numbers to decimals. In this article, I’ll walk you through how to write a Python program to convert Roman numbers to decimals. How To Convert Roman…

## Use Phone Camera with Python

Have you ever thought about the possibility of using your phone’s camera for computer vision task? Yes, you can! In this article, I will walk you through how to use your phone camera with Python for computer vision. Learn How…

## Extract Text from PDF using Python

In this article, I will take you through how you can extract text from PDF files using Python. To extract text from a PDF is not an easy task, there is a lot to do here. But for some help,…

## Instagram Filters with Python

You must have used Instagram once in your life, have you noticed that you see a variety of Instagram filters when uploading an image. These filters are designed to improve the quality of the image. These filters are an example…

## Count Rainy Days with Python

In this article, I will walk you through a numerical computational task with Python to count rainy days with python. Imagine you have a data series that represents the amount of precipitation each day for a year in a given…

## Send Emails with Python

Sometimes we can be in a situation where we need to send emails to multiple people in a personalized way. Although these emails follow the same format, the information they contain varies from recipient to recipient. In this article, I…