brcinstitute111@gmail.com

Enter the number to print week day in Python

View All Python Programs Source Code num=int(input(“Enter the number from 1 to 7 : “)) if num==1:     print(“Monday”) elif num==2:     print(“tuesday”) elif num==3:     print(“Wednesday”) elif num==4:     print(“Thursday”) elif num==5:     print(“Friday”) elif num==6:     print(“Saturday”) elif num==7:     print(“Sunday”) else:     print(“You enter number out of range”) Output Enter the number

Enter the number to print week day in Python Read More »

Enter the number to print month in Python

View All Python Programs Source Code num=int(input(“Enter the number from 1 to 12 : “)) if num==1:     print(“January”) elif num==2:     print(“Feburary”) elif num==3:     print(“March”) elif num==4:     print(“April”) elif num==5:     print(“May”) elif num==6:     print(“June”) elif num==7:     print(“July”) elif num==8:     print(“August”) elif num==9:     print(“September”) elif num==10:     print(“October”)

Enter the number to print month in Python Read More »

Find out the grade by entering the percentage in Python

View All Python Programs Source Code per=int(input(“Enter your percentage : “)) if per>=90:     print(“Grade : A+”) elif per>=80:     print(“Grade : A”) elif per>=70:     print(“Grade : B”) elif per>=60:     print(“Grade : C”) elif per>=50:     print(“Grade : D”) elif per>=40:     print(“Grade : E”) else:     print(“Fail”) Output Enter your percentage :

Find out the grade by entering the percentage in Python Read More »

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 »