Python program to add two numbers

Introduction: In this article, I am going to explain a Python program to add two numbers. If you are trying to use python operators then the Python program to add two numbers is a good beginning. There are several types of operators available in python but if you want to learn python arithmetic operators then Python program to add two numbers is a good choice. Algorithm: Here, I am going to explain the logic of program with the help of a simple algorithm Here, I am going to explain ...
Read More

How to take space separated input in Python?

Introduction: In this article I am going to explain  how to take space separated input in Python?  There may be a situation when we want to enter more than one values but all the  values should be separated by space and we hit the enter key after the last input.  To fulfill this requirement we should know that how to take space separated input in Python.  We are using several types of input devices for user input .  The standard input device is a keyboard.  In t...
Read More

Python Program to Check Whether a Number is Prime or Not

primenoinpython
In this article, we will check whether an integer is a prime no or not in python. What is Prime Number? If a whole number greater than 1, is divisible by the 1 and itself then it is known as Prime Number.A prime number is a number which is divisible by only two numbers: 1 and itself. So, if any number is divisible by any other number, it is not a prime number. Different View of the Logic The number cannot divisible by any number between 2 to n-1.Test all divisors from 2 through n-1 ...
Read More

Program to Check Armstrong Number in python

Python Program to Check Armstrong Number Armstrong number in python-In this article, we will see a Python program through which we can check if the given number is an Armstrong number or not. What is Armstrong number in Python? An Armstrong number is an n-digit number that is equal to the sum of the nth powers of its digits. A positive integer is called an Armstrong number of order n if abcd... = an + bn + cn + dn + ... In case of an Armstrong number of three dig...
Read More

Find the Fibonacci Series in python and Factorial of a Number in python

Fibonacci Series in python
Fibonacci Series in python Fibonacci Series in python-In this article, we're going to start talking about finding the Fibonacci series in python and the factorial of a number in Python. So to begin with the Fibonacci numbers is a fairly classically studied sequence of natural numbers. The 0th element of the sequence is 0. The first element is 1. And from thereon, each element is the sum of the previous two. So 0 and 1 is 1. 1 + 1 is 2. 1 + 2 is 3. 2 + 3 is 5. And the sequence continues, 8...
Read More