Loops in Python:- The Python programming language provides the following types of loops to handle looping requirements. Python offers three
Continue readingCategory: Python
Python Program to Convert Decimal to Binary
In this program, we have defined a function for conversion to be named DecimalToBinary (). This function takes the decimal
Continue readingPython program to check whether a number is Prime or not
# Taking one number below and check it is prime or not number = 13 if number > 1: for
Continue readingPython Program to Calculate the Area of a Triangle
we are using below formula to calculate area of triangle s = (a+b+c)/2 area = √(s(s-a)*(s-b)*(s-c)) a = 4
Continue readingPython Program to Find Armstrong Number
Find Below Program to check Armstrong numbers in certain interval # take input from the user low_range = int(input(“Enter lower
Continue readingPython Program to Print the Fibonacci series
Program to display the Fibonacci sequence up to n-th term where n is provided by the user count = int(input(“enter
Continue readingPython Program to Find ASCII Value of Character
Program to find the ASCII value of character # Change this value for a different character result c = ‘K’
Continue readingPython Program to Solve Quadratic Equation
Quadratic Equation Program:- The Standard Form of a Quadratic Equation looks like this Quadratic Equation: ax**2 + bx + c = 0
Continue readingPython Program to Convert Kilometers to Miles
Python Program to convert Kilometers to Miles #Python Program to Convert Kilometers to Miles #Declare one variable and assign value
Continue readingPython Program to Generate a Random Number
Python Program to Generate a Random Number:- To generate random number in Python we use randint() function. # Python program
Continue reading