Program to find the quadrant of a point

A point identified by the co-ordinates x,y is in one of the four quadrants of the co-ordinate system. Let’s write a Python program to find the quadrant of a point specified by x,y. How many quadrants are there in a plane? There are 4 quadrants in a plane in the co-ordinate system. A point x,y... » read more

Program to generate factors of a number

Let’s write a Python program to generate factors of a number. What are factors of a number? The factors of a number are those numbers which can divide the given number exactly. A number when divided by its factor yields a zero remainder. Some examples are given below. Each number has atleast two factors, 1... » read more

Program to generate Fibonacci Series
Program to generate Fibonacci Series

Let’s write a Python program to generate Fibonacci series. We will also write a program to generate the prime numbers in a Fibonacci series. What is a Fibonacci series? The Fibonacci Series is a series of numbers in which the first number is 0 and the second number is 1. The third number is the... » read more

Program to check if number is Prime
Program to check if number is Prime

Let’s write a Python program to check if number is prime or not. What is a Prime number? A number which is not divisible by any number except 1 and itself is called as a prime number. A prime number has only two factors, 1 and itself. How to check if number is prime? To... » read more

Addition Operator in Python

Python has a variety of operators to perform various arithmetic operations like addition, subtraction, multiplication, division, modulus and exponentiation. Here we will discuss the addition operator in Python with some code snippets The addition operator (+) in Python performs addition of 2 numbers. The numbers can be of the type integer or floating point. Let’s... » read more

Variables in Python

In this article, we will discuss the different aspects of using variables in Python like declaring variables, assigning values to variables and the data types of variables. Declaring Variables in Python In Python, there is no need to explicitly declare variables. Instead we just assign a value to a variable and start using it in... » read more

Hello Python!

Welcome to All Python (Python for all). This website is an informative website on Python for all (beginners and experts). Lets start learning!