Python Programs

Find the area & perimeter of circle with user-interface in Python

View All Python Programs Source Code r=float(input(“Enter radius : “))pi=3.14area=pi*r*rperi=2*pi*rprint(“Area of circle : “, area)print(“Perimeter of circle : “, peri) Output Enter radius : 8.7Area of circle : 237.66659999999996 Perimeter of circle : 54.635999999999996 View All Python Programs

Find the area & perimeter of circle with user-interface in Python Read More »

Find the area & perimeter of rectangle with user-interface in Python

View All Python Programs Source Code l=int(input(“Enter length : “))w=int(input(“Enter width : “))area=l*wperi=2*(l+w)print(“Area of rectangle : “, area)print(“Perimeter of rectangle : “, peri) Output Enter length : 78Enter width : 54Area of rectangle : 4212Perimeter of rectangle : 264 View All Python Programs

Find the area & perimeter of rectangle with user-interface in Python Read More »

Calculate the percentage of given marks in Python

View All Python Programs Source Code hin=int(input(“Enter hindi marks : “))eng=int(input(“Enter english marks : “))mth=int(input(“Enter maths marks : “))sci=int(input(“Enter science marks : “))com=int(input(“Enter computer marks : “))print(“Hindi Marks : “, hin)print(“English Marks : “, hin)print(“Maths Marks : “, hin)print(“Science Marks : “, hin)print(“Computer Marks : “, hin)per=(hin+eng+mth+sci+com)/5print(“Percentage : “, per) Output Enter hindi marks :

Calculate the percentage of given marks in Python Read More »

All arithmetic operator program in Python

View All Python Programs Source Code n1=21n2=7print(“n1 : “, n1)print(“n2 : “, n2)print(“Addition : “, n1+n2)print(“Subtraction : “, n1-n2)print(“Multiplication : “, n1*n2)print(“Division : “, n1/n2) print(“Remainder(Modulus) : “, n1%n2) Output  n1 : 21n2 : 7Addition : 28Subtraction : 14Multiplication : 147Division : 3.0Remainder(Modulus) : 0 View All Python Programs

All arithmetic operator program in Python Read More »

All arithmetic operator program in Python

View All Python Programs Source Code n1=21n2=7print(“n1 : “, n1)print(“n2 : “, n2)print(“Addition : “, n1+n2)print(“Substraction : “, n1-n2)print(“Multiplication : “, n1*n2)print(“Division : “, n1/n2)print(“Remainder(Modulus) : “, n1%n2) Output n1 : 21n2 : 7Addition : 28Substraction : 14Multiplication : 147Division : 3.0Remainder(Modulus) : 0 View All Python Programs

All arithmetic operator program in Python Read More »