In this post, we will write a Python program for how to find ASCII value. First, let’s see What is ASCII value? In programming languages, the characters (variable) holds ASCII value which is an integer number rather than that character itself is known as the ASCII value of character. ASCII stands for American Standard Code […]
Author: Simran Bhandari
Python – Program to Find Area of a Circle
In this post, we will write a program for how to calculate the area of a circle in python. First, let’s see What is the Area of Circle? The area enclosed by a circle of radius r in 2-dimensional plane. Formula: Area of circle: A = pi * r * r Or pi * r […]
Python – program to calculate Compound Interest
In this post, we will write a program for how to calculate compound interest in python. First, let’s see What is compound Interest? Compound Interest is also called compounding interest which is calculated on the principal (initial principal) that is the addition of interest to the principal sum of a loan or deposit. The formula […]
Python – program to calculate simple interest
In this post, we will write a program for how to calculate simple interest in Python. First, let’s see What is Simple Interest? Simple interest is an interest calculated on the principal amount of a loan or the original contribution to a savings account. Simple Interest: I = (P * R * T) / 100 […]
Python – program to print first n odd natural numbers
In this post, we will see how to print first n odd natural numbers in python? Odd Numbers: Any integer that is positive or negative which can not be divided exactly by 2 is an odd number. The numbers having the last digit is 1, 3, 5, 7 or 9 are odd numbers. Note: Natural […]