## Python Substring: How to Find Substring through Slicing

A string is a sequence of Unicode characters that may contain special and alphanumeric characters. Python substring, on the other hand, is a sequence of characters that is present within …

## Factorial Program in Python: 3 Different Methods

The factorial of a number is the multiplication of that number by a positive number less than it till it gets to 1. This concept has various applications in mathematics, …

## Leap Year Program in Python

A leap year is a year that has 366 days rather than 365 days. While you’re at doing cool stuff in programming, have you thought about writing a leap year …

## Prime Number Program in Python [with Examples]

Prime numbers are numbers that can only be divisible by themselves or 1. Examples of prime numbers include 2, 3, 5, 7, 11, and so on. In this tutorial, you …

## Absolute Value in Python

All real numbers (whether an integer or a decimal) can be positive or negative. But in situations where we deal with only non-negative (positive) values; then the term absolute value …

## Armstrong Number In Python

Computer programs can do many fun stuff. With python being one of the most popular out there, there have been attempts to try out different ideas in the language. One …

## Palindrome in Python

We have all seen numbers and strings in which the reverse gives the same characters as the original strings or numbers. These numbers or words are called Palindromes. In mathematics, …

## Python Bisect Algorithm: Bisect and Insort Functions

When you have a sorted list and you wish to insert an element to the list without altering its sorted order. The native approach is to insert the new element …

## Artificial Intelligence Vs Machine Learning

Artificial intelligence and machine learning are two buzzwords in computer science today. Even in the tech field in general, everyone talks about artificial intelligence vs machine learning and many are …

## Python Input Function and Print Function

All programming languages deal with inputs and outputs. A user necessarily has to interact with his program by passing some input to provide some output result. For the python programming …