To understand this example, you should have knowledge of following Python programming topics: Python – Operators There are two ways to swap two numbers: Without Using Temporary Variable Using Temporary Variable Source Code: Swap Using a temporary variable # Python Program to Swap Two Variables Using Temporary Variable x = 5 y = 7 print(“Before Swapping:… Continue Reading »

# Tag: Python Tutorial

This training is for Python Beginners and Experts. We tried you to provide best python tutorial by explaining lots of examples and videos. Python tutorial will help you to code from scratch and give good knowledge on Python Programming Language.

### Prime Number Program in Python

Python to Check Number is Prime Number Programor Not A number that is divisible only by itself and 1 (i.e. 2, 3, 5, 7, 11) is called Prime Number. Note: 0 and 1 are not Prime Number To understand this example, you should have knowledge of following Python programming topics: Python – If…Else Condition Python –… Continue Reading »

### Check if a Number and String is Palindrome Python

A word, phrase, or sequence that reads identical backwards as forwards. For Example – dad, mom, madam, 121, 1120211 To understand this example, you should have knowledge of following Python programming topics: Python – If…Else Condition Python – Operators Python – List Python – String Source Code – Python program to check if a string is… Continue Reading »

### Odd Even Number Program – Python

A number which is divisible by 2 is called Even Number. A Number which is not divisible by 2 is called Odd Number To understand this example, you should have knowledge of following Python programming topics: Python – If…Else Condition Python – Operators Source Code : Python Odd-Even Program # Odd and Even Python Program #… Continue Reading »

### Python Program to Check Leap Year

A year, occurring once every four years, which has 366 days including 29 February as an intercalary day. A leap year is exactly divisible by 4 except for century years (years ending with 00). The century year is a leap year only if it is perfectly divisible by 400. For example, 2020 is Leap Year2000… Continue Reading »

### Python Program to check Armstrong number

Python Program for Finding Armstrong Number. A number is termed Armstrong number if it’s up to the total of the cubes of its own digits. Lets take an Example: 153 = (1*1*1) + (5*5*5) + (3*3*3) = 153 1634 = (1*1*1*1) + (6*6*6*6) + (3*3*3*3) + (4*4*4*4) = 1634 In the above 153 and 1634… Continue Reading »

### Python Program For Simple Calculator

Here we are going to implement an easy simple calculator program in Python. We are going to implement Addition, Subtraction, Multiplication, and Division. To understand this example, you should have knowledge of following Python programming topics: Python – If…Else Condition Python – Function Python – Operators When you execute the program it will ask for entering… Continue Reading »

### Python Program for Factorial Using Loop and Recursive Function

Python Factorial of n is that the product of all positive descending integers. Factorial of n is denoted by n!. Here, 4! is pronounced as “4 factorial”, it is also called “4 bang” or “4 shriek”. The factorial is normally used in Combinations and Permutations (mathematics). To understand this example, you should have knowledge of… Continue Reading »

### Fibonacci Series in Python using FOR Loop and Recursion

Fibonacci series in python using for loop. In Python Fibonacci Series, the next range uses the total of the previous two numbers. For example: 0, 1, 1, 2, 3, 5 , 8, 13, 21, 34, 55 and so on. Fibonacci series starts from 0 and 1. Fibonacci application is used in the Stock Market, Trading,… Continue Reading »

### Python Try Exception Finally Nothing

Python provides two important options to handle any sudden error in your Python programs and to feature debugging capabilities in them. The try block enables you to check a block of code for errors. The except block lets you handle the error. Exception Handling In Python The finally block enables you to execute code, no matter the… Continue Reading »