brcinstitute111@gmail.com

Calculate fail or pass 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 : “)) per=(hin+eng+mth+sci+com)/5 print(“Percentage : “, per) if per>40:     print(“Result : Pass”) else:     print(“Result : Fail”) Output Enter hindi marks : 78 Enter english

Calculate fail or pass of given marks in Python Read More »

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 »