Tag: basic python program

Read Two Numbers and Print Their Quotient and Remainder in python

In this Basic Python Program, we will have a look at how read Two Numbers and Print Their Quotient and Remainder in python. Python program to read Two Numbers and Print Their Quotient and Remainder…

Print all Numbers in a Range Divisible by a Given Number in python

In this Basic Python Program, we will have a look at how to print all Numbers in a Range Divisible by a Given Number in python. Python program to Print all Numbers in a Range…

Input The Marks of 5 Subjects and Display the Grade in python

In this python program, we will display the grade in python. User need to input the grades on 5 subject. Python program to Input The Marks of 5 Subjects and Display the Grade sub1=int(input(“Enter first…

Reverse Number In Python

In this python program, we will have look at how to reverse number in python. Python program to reverse a number Number = int(input("Enter a number: "))     Reverse = 0     while(Number > 0):         Reminder = Number %10         Reverse = (Reverse *10) + Reminder         Number = Number //10           print("\n Reverse of entered number is = %d" %Reverse)   

Read a Number n and Compute n+nn+nnn in Python

In this Python program, we will have a look at how to read a number n & compute n+nn+nnn in python. Python Program To Read a Number n and Compute n+nn+nnn in Python n=int(input("Please enter…

Exchange the Values of Two Numbers Without Using a Temporary Variable in Python

In this Python program, we will have a look at how to exchange the values of two numbers without using a temporary variable in python. Python Program To Exchange The Values Of Two Numbers Without…

Calculate the Average of Numbers in a Given List In Python

In this Basic Python Program,  we will Calculate the Average of Numbers in a Given List. Average of Numbers= Sum of numbers/total; Python Program To Calculate the Average of Numbers in a Given List n=int(input("Please enter…

Basic Python Programs

This Basic Python programs set is designed for the Beginner in Python Programming Language. The syntax of the Python language is very clean and short compared to other programming languages. It’s really fun to work…

Swap Two Variables in Python

In this Basic Python Program, let’s have a look at “How to “Swap Two Variables in Python”. Here, Swapping means exchanging the value of variables. If x=2 & y=3 After swapping the value of x…

Check if a Number is Odd or Even in Python

In this Basic Python Program, we will have a look at “How to Check if a Number is Odd or Even in Python” Odd Number: A number which is not divisible by 2. Even number:…

Shopping cart