Result Calculator and Mark sheet Generator Python Project
#TOPIC:-RESULT CALCULATOR AND MARKSHEET GENERATOR #ALL THE FUNCTIONS THAT ARE DEFINED AND USED #ENTRY OF MARKS #PRIMARY SECTION #CALCULATION OF PT1 MARKS FOR PRIMARY SECTION def pt1pri(): print("Now inputting marks for Periodic Test 1 of Primary Section") print() mpt1pri=int(input("Enter the marks scored in Periodic Test 1 of Mathematics")) evspt1pri=int(input("Enter the marks scored in Periodic Test 1 of Environmental Science")) ept1pri=int(input("Enter the marks scored in Periodic Test 1 of English")) hpt1pri=int(input("Enter the marks scored in Periodic Test 1 of Hindi")) totmarkspt1=mpt1pri+evspt1pri+ept1pri+hpt1pri ppt1=totmarkspt1/160*100 print("Total Marks in PT1=160") print("Marks obtained in PT1=",totmarkspt1) print("Percentage of marks in PT1=",ppt1) if ppt1>90: print("Scored A1 grade") if ppt1>80 and ppt2<90: print("Scored A2 grade") if ppt1>70 and ppt1<80: print("Scored B1 grade") if ppt1>60 and ppt1<70: print("Scored B2 grade") if ppt1>50 and ppt1<60: print("Scored C1 grade") if ppt1>40 and ppt1<50: print("Scored C2 grade") if ppt1>33 and ppt1<40: print("Scored D grade") if ppt1<33: print("Scored E grade") #CALCULATION OF PT2 MARKS FOR PRIMARY SECTION def pt2pri(): print("Now inputting marks for Periodic Test 2 of Primary Section") print() mpt2pri=int(input("Enter the marks scored in Periodic Test 2 of Mathematics")) evspt2pri=int(input("Enter the marks scored in Periodic Test 2 of Environmental Science")) ept2pri=int(input("Enter the marks scored in Periodic Test 2 of English")) hpt2pri=int(input("Enter the marks scored in Periodic Test 2 of Hindi")) totmarkspt2=mpt2pri+evspt2pri+ept2pri+hpt2pri ppt2=totmarkspt2/160*100 print("Total Marks in PT2=160") print("Marks obtained in PT2=",totmarkspt2) print("Percentage of marks in PT2=",ppt2) if ppt2>90: print("Scored A1 grade") if ppt2>80 and ppt2<90: print("Scored A2 grade") if ppt2>70 and ppt2<80: print("Scored B1 grade") if ppt2>60 and ppt2<70: print("Scored B2 grade") if ppt2>50 and ppt2<60: print("Scored C1 grade") if ppt2>40 and ppt2<50: print("Scored C2 grade") if ppt2>33 and ppt2<40: print("Scored D grade") if ppt2<33: print("Scored E grade") #CALCULATION OF HALF YEARLY EXAMINATION MARKS FOR PRIMARY SECTION def hypri(): print("Now inputting marks for Half Yearly Examination of Primary Section") print() mhypri=int(input("Enter the marks scored in Half Yearly Examination of Mathematics")) evshypri=int(input("Enter the marks scored in Half Yearly Examination of Environmental Science")) ehypri=int(input("Enter the marks scored in Half Yearly Examination of English")) hhypri=int(input("Enter the marks scored in Half Yearly Examination of Hindi")) totmarkshy=mhypri+evshypri+ehypri+hhypri phy=totmarkshy/320*100 print("Total Marks in Half Yearly=320") print("Marks obtained in Half Yearly=",totmarkshy) print("Percentage of marks in Half Yearly=",phy) if phy>90: print("Scored A1 grade") if phy>80 and phy<90: print("Scored A2 grade") if phy>70 and phy<80: print("Scored B1 grade") if phy>60 and phy<70: print("Scored B2 grade") if phy>50 and phy<60: print("Scored C1 grade") if phy>40 and phy<50: print("Scored C2 grade") if phy>33 and phy<40: print("Scored D grade") if phy<33: print("Scored E grade") #CALCULATION OF SESION ENDING EXAMINATION MARKS FOR PRIMARY SECTION def ssepri(): print("Now inputting marks for Session Ending Exams of Primary Section") print() mssepri=int(input("Enter the marks scored in Session Ending Examination of Mathematics")) evsssepri=int(input("Enter the marks scored in Sessipon Ending Examination of Environmental Science")) essepri=int(input("Enter the marks scored in Session Ending Examination of English")) hssepri=int(input("Enter the marks scored in Session Ending Examination of Hindi")) totmarkssse=mssepri+evsssepri+essepri+hssepri psse=totmarkssse/320*100 print("Total Marks in Session Ending Examination=320") print("Marks obtained in Session Ending Examination=",totmarkssse) print("Percentage of marks in Session Ending Examination=",psse) if psse>90: print("Scored A1 grade") if psse>80 and psse<90: print("Scored A2 grade") if psse>70 and psse<80: print("Scored B1 grade") if psse>60 and psse<70: print("Scored B2 grade") if psse>50 and psse<60: print("Scored C1 grade") if psse>40 and psse<50: print("Scored C2 grade") if psse>33 and psse<40: print("Scored D grade") if psse<33: print("Scored E grade") #CALCULATION OF INTERNAL MARKS FOR PRIMARY SECTION def prpri(): print("Now inputting marks for Internals of Primary Section") print() mprpri=int(input("Enter the marks scored in Internals of Mathematics")) evsprpri=int(input("Enter the marks scored in Internals of Environmental Science")) eprpri=int(input("Enter the marks scored in Internals of English")) hprpri=int(input("Enter the marks scored in Internals of Hindi")) totmarkspr=mprpri+evsprpri+eprpri+hprpri ppr=totmarkspr/80*100 print("Total Marks in Internals=80") print("Marks obtained in Internals=",totmarkspr) print("Percentage of marks in Internals=",ppr) if ppr>90: print("Scored A1 grade") if ppr>80 and ppr<90: print("Scored A2 grade") if ppr>70 and ppr<80: print("Scored B1 grade") if ppr>60 and ppr<70: print("Scored B2 grade") if ppr>50 and ppr<60: print("Scored C1 grade") if ppr>40 and ppr<50: print("Scored C2 grade") if ppr>33 and ppr<40: print("Scored D grade") if ppr<33: print("Scored E grade") #CLASS 11 PCM WITH COMPUTER SCIENCE STREAM #CALCULATION OF PT1 MARKS OF PCM WITH COMPUTER SCIENCE STREAM CLASS 11 def pt1cs(): print("Now inputting marks for Periodic Test 1 of PCM with Computer Science Stream Class 11") print() mpt1cs=int(input("Enter the marks scored in Periodic Test 1 of Mathematics :")) ept1cs=int(input("Enter the marks scored in Periodic Test 1 of English :")) cspt1cs=int(input("Enter the marks scored in Periodic Test 1 of Computer Science :")) cpt1cs=int(input("Enter the marks scored in Periodic Test 1 of Chemistry :")) ppt1cs=int(input("Enter the marks scored in Periodic Test 1 of Physics :")) totmarkspt1=mpt1cs+ept1cs+cspt1cs+ppt1cs+cpt1cs ppt1=totmarkspt1/200*100 print("Total Marks in PT1=200") print("Marks obtained in PT1=",totmarkspt1) print("Percentage of marks in PT1=",ppt1) if ppt1>90: print("Scored A1 grade") if ppt1>80 and ppt1<90: print("Scored A2 grade") if ppt1>70 and ppt1<80: print("Scored B1 grade") if ppt1>60 and ppt1<70: print("Scored B2 grade") if ppt1>50 and ppt1<60: print("Scored C1 grade") if ppt1>40 and ppt1<50: print("Scored C2 grade") if ppt1>33 and ppt1<40: print("Scored D grade") if ppt1<33: print("Failed") #CALCULATION OF PT2 MARKS OF PCM WITH COMPUTER SCIENCE STREAM CLASS 11 def pt2cs(): print("Now inputting marks for Periodic Test 2 of PCM with Computer Science Stream Class 11") print() mpt2cs=int(input("Enter the marks scored in Periodic Test 2 Of Mathematics:")) ept2cs=int(input("Enter the marks scored in Periodic Test 2 of English:")) cspt2cs=int(input("Enter the marks scored in Periodic Test 2 Of Computer Science :")) cpt2cs=int(input("Enter the marks scored Periodic Test 2 of Chemistry:")) ppt2cs=int(input("Enter the marks scored in Periodic Test 2 of Physics:")) totmarkspt2=mpt2cs+ept2cs+cspt2cs+ppt2cs+cpt2cs ppt2=totmarkspt2/200*100 print("Total Marks in PT2=200") print("Marks obtained in PT2=",totmarkspt2) print("Percentage of marks in PT2=",ppt2) if ppt2>90: print("Scored A1 grade") if ppt2>80 and ppt2<90: print("Scored A2 grade") if ppt2>70 and ppt2<80: print("Scored B1 grade") if ppt2>60 and ppt2<70: print("Scored B2 grade") if ppt2>50 and ppt2<60: print("Scored C1 grade") if ppt2>40 and ppt2<50: print("Scored C2 grade") if ppt2>33 and ppt2<40: print("Scored D grade") if ppt2<33: print("Failed") #CALCULATION OF HALF YEARLY MARKS OF COMPUTER SCIENCE STREAM CLASS 11 def hycs(): print("Now inputting marks for Half Yearly of PCM with Computer Science Stream Class 11") print() mhycs=int(input("Enter the marks scored in Half Yearly Examination of Mathematics:")) ehycs=int(input("Enter the marks scored in Half Yearly Examination of English:")) cshycs=int(input("Enter the marks scored in Half Yearly Examination of Computer Science:")) chycs=int(input("Enter the marks scored in Half Yearly Examination of Chemistry:")) phycs=int(input("Enter the marks scored in Half Yearly Examination of Physics :")) totmarkshy=mhycs+ehycs+cshycs+phycs+chycs phy=totmarkshy/370*100 print("Total Marks in Half Yearly=370") print("Marks obtained in Half Yearly=",totmarkshy) print("Percentage of marks in Half Yearly=",phy) if phy>90: print("Scored A1 grade") if phy>80 and phy<90: print("Scored A2 grade") if phy>70 and phy<80: print("Scored B1 grade") if phy>60 and phy<70: print("Scored B2 grade") if phy>50 and phy<60: print("Scored C1 grade") if phy>40 and phy<50: print("Scored C2 grade") if phy>33 and phy<40: print("Scored D grade") if phy<33: print("Failed") #CALCULATION OF PRACTICAL MARKS IN CLASS 11 PCM WITH COMPUTER SCIENCE def prcs(): print("Now inputting marks for Practicals of PCM with Computer Science Stream Class 11") print() mprcs=int(input("Enter the marks scored in practicals of Mathematics")) eprcs=int(input("Enter the marks scored in practicals of English")) csprcs=int(input("Enter the marks scored in practicals of Computer Science")) crcs=int(input("Enter the marks scored in practicals of Chemistry")) pprcs=int(input("Enter the marks scored in practicals of Physics")) totmarkspr=mprcs+eprcs+csprcs+pprcs+crcs ppr=totmarkspr/130*100 print("Total Marks in Practicals=130") print("Marks obtained in Practicals=",totmarkspr) print("Percentage of marks in Practicals=",ppr) if ppr>90: print("Scored A1 grade") if ppr>80 and ppr<90: print("Scored A2 grade") if ppr>70 and ppr<80: print("Scored B1 grade") if ppr>60 and ppr<70: print("Scored B2 grade") if ppr>50 and ppr<60: print("Scored C1 grade") if ppr>40 and ppr<50: print("Scored C2 grade") if ppr>33 and ppr<40: print("Scored D grade") if ppr<33: print("Failed") #CALCULATION OF SESSION ENDING MARKS OF PCM WITH COMPUTER SCIENCE STREAM CLASS 11 def ssecs(): print("Now inputting marks for Session Ending Examination of PCM with Computer Science Stream Class 11") print() mssecs=int(input("Enter the marks scored in Session Ending Examination of Mathematics")) essecs=int(input("Enter the marks scored in Session Ending Examination of English")) csssecs=int(input("Enter the marks scored in Session Ending Examination of Computer Science")) cssecs=int(input("Enter the marks scored in Session Ending Examination of Chemistry")) pssecs=int(input("Enter the marks scored in Session Ending Examination of Physics")) totmarkssse=mssecs+essecs+csssecs+pssecs+cssecs psse=totmarkssse/370*100 print("Total Marks in Session Ending Examination=370") print("Marks obtained in Session Ending Examination=",totmarkssse) print("Percentage of marks in Session Ending Examination=",psse) if psse>90: print("Scored A1 grade") if psse>80 and psse<90: print("Scored A2 grade") if psse>70 and psse<80: print("Scored B1 grade") if psse>60 and psse<70: print("Scored B2 grade") if psse>50 and psse<60: print("Scored C1 grade") if psse>40 and psse<50: print("Scored C2 grade") if psse>33 and psse<40: print("Scored D grade") if psse<33: print("Failed") #CLASS 11 PCMB STREAM #CALCULATION OF PT1 MARKS OF PCMB STREAM CLASS 11 def pt1bio(): print("Now inputting marks for Periodic Test 1 of PCMB Stream Class 11") print() mpt1bio=int(input("Enter the marks scored in Periodic Test 1 of Mathematics :")) ept1bio=int(input("Enter the marks scored in Periodic Test 1 of English :")) biopt1bio=int(input("Enter the marks scored in Periodic Test 1 of Biology:")) cpt1bio=int(input("Enter the marks scored in Periodic Test 1 of Chemistry :")) ppt1bio=int(input("Enter the marks scored in Periodic Test 1 of Physics :")) totmarkspt1=mpt1bio+ept1bio+biopt1bio+ppt1bio+cpt1bio ppt1=totmarkspt1/200*100 print("Total Marks in PT1=200") print("Marks obtained in PT1=",totmarkspt1) print("Percentage of marks in PT1=",ppt1) if ppt1>90: print("Scored A1 grade") if ppt1>80 and ppt2<90: print("Scored A2 grade") if ppt1>70 and ppt1<80: print("Scored B1 grade") if ppt1>60 and ppt1<70: print("Scored B2 grade") if ppt1>50 and ppt1<60: print("Scored C1 grade") if ppt1>40 and ppt1<50: print("Scored C2 grade") if ppt1>33 and ppt1<40: print("Scored D grade") if ppt1<33: print("Failed") #CALCULATION OF PT2 MARKS OF PCMB STREAM CLASS 11 def pt2bio(): print("Now inputting marks for Periodic Test 2 of PCMB Stream Class 11") print() mpt2bio=int(input("Enter the marks scored in Periodic Test 2 Of Mathematics:")) ept2bio=int(input("Enter the marks scored in Periodic Test 2 of English:")) biopt2bio=int(input("Enter the marks scored in Periodic Test 2 of Biology:")) cpt2bio=int(input("EEnter the marks scored in Periodic Test 2 of Chemistry:")) ppt2bio=int(input("Enter the marks scored in Periodic Test 2 of Physics:")) totmarkspt2=mpt2bio+ept2bio+biopt2bio+ppt2bio+cpt2bio ppt2=totmarkspt2/200*100 print("Total Marks in PT2=200") print("Marks obtained in PT2=",totmarkspt2) print("Percentage of marks in PT2=",ppt2) if ppt2>90: print("Scored A1 grade") if ppt2>80 and ppt2<90: print("Scored A2 grade") if ppt2>70 and ppt2<80: print("Scored B1 grade") if ppt2>60 and ppt2<70: print("Scored B2 grade") if ppt2>50 and ppt2<60: print("Scored C1 grade") if ppt2>40 and ppt2<50: print("Scored C2 grade") if ppt2>33 and ppt2<40: print("Scored D grade") if ppt2<33: print("Failed") #CALCULATION OF HALF YEARLY MARKS OF PCMB STREAM CLASS 11 def hybio(): print("Now inputting marks for Half Yearly Examination of PCMB Stream Class 11") print() mhybio=int(input("Enter the marks scored in Half Yearly Examination of Mathematics:")) ehybio=int(input("Enter the marks scored in Half Yearly Examination of English:")) biohybio=int(input("Enter the marks scored in Half Yearly Examination of Biology:")) chybio=int(input("Enter the marks scored in HalF Yearly Examination of Chemistry:")) phybio=int(input("Enter the marks scored in Half Yearly Examination of Physics :")) totmarkshy=mhybio+ehybio+biohybio+phybio+chybio phy=totmarkshy/370*100 print("Total Marks in Half Yearly=370") print("Marks obtained in Half Yearly=",totmarkshy) print("Percentage of marks in Half Yearly=",phy) if phy>90: print("Scored A1 grade") if phy>80 and phy<90: print("Scored A2 grade") if phy>70 and phy<80: print("Scored B1 grade") if phy>60 and phy<70: print("Scored B2 grade") if phy>50 and phy<60: print("Scored C1 grade") if phy>40 and phy<50: print("Scored C2 grade") if phy>33 and phy<40: print("Scored D grade") if phy<33: print("Failed") #CALCULATION OF PRACTICAL MARKS IN CLASS 11 PCMB STREAM def prbio(): print("Now inputting marks for Practicals of PCMB Stream Class 11") print() mprbio=int(input("Enter the marks scored in practicals of Mathematics")) eprbio=int(input("Enter the marks scored in practicals of English")) bioprbio=int(input("Enter the marks scored in practicals of Biology")) cprbio=int(input("Enter the marks scored in practicals of Chemistry")) pprbio=int(input("Enter the marks scored in practicals of Physics")) totmarkspr=mprbio+eprbio+bioprbio+pprbio+cprbio ppr=totmarkspr/130*100 print("Total Marks in Practical=130") print("Marks obtained in Practical=",totmarkspr) print("Percentage of marks in Practical=",ppr) if ppr>90: print("Scored A1 grade") if ppr>80 and ppr<90: print("Scored A2 grade") if ppr>70 and ppr<80: print("Scored B1 grade") if ppr>60 and ppr<70: print("Scored B2 grade") if ppr>50 and ppr<60: print("Scored C1 grade") if ppr>40 and ppr<50: print("Scored C2 grade") if ppr>33 and ppr<40: print("Scored D grade") if ppr<33: print("Failed") #CALCULATION OF SESSION ENDING MARKS OF PCMB STREAM CLASS 11 def ssebio(): print("Now inputting marks for Session Ending Examination of PCMB Stream Class 11") print() mssebio=int(input("Enter the marks scored in Session Ending Examination of Mathematics")) essebio=int(input("Enter the marks scored in Session Ending Examination of English")) biossebio=int(input("Enter the marks scored in Session Ending Examination of Biology")) cssebio=int(input("Enter the marks scored in Session Ending Examination of Chemistry")) pssebio=int(input("Enter the marks scored in Session Ending Examination of Physics")) totmarkssse=mssebio+essebio+biossebio+pssebio+cssebio psse=totmarkssse/370*100 print("Total Marks in Session Ending Examination=370") print("Marks obtained in Session Ending Examination=",totmarkssse) print("Percentage of marks in Session Ending Examination=",psse) if psse>90: print("Scored A1 grade") if psse>80 and psse<90: print("Scored A2 grade") if psse>70 and psse<80: print("Scored B1 grade") if psse>60 and psse<70: print("Scored B2 grade") if psse>50 and psse<60: print("Scored C1 grade") if psse>40 and psse<50: print("Scored C2 grade") if psse>33 and psse<40: print("Scored D grade") if psse<33: print("Failed") #CLASS 11 PCB WITH HINDI STREAM #CALCULATION OF PT1 MARKS OF PCB WITH HINDI STREAM CLASS 11 def pt1h(): print("Now inputting marks for Periodic Test 1 of PCB Stream with Hindi Class 11") print() hpt1h=int(input("Enter the marks scored in Periodic Test 1 of Hindi :")) ept1h=int(input("Enter the marks scored in Periodic Test 1 of English :")) biopt1h=int(input("Enter the marks scored in Periodic Test 1 of Biology:")) cpt1h=int(input("Enter the marks scored in Periodic Test 1 of Chemistry :")) ppt1h=int(input("Enter the marks scored in Periodic Test 1 of Physics :")) totmarkspt1=hpt1h+ept1h+biopt1h+ppt1h+cpt1h ppt1=totmarkspt1/200*100 print("Total Marks in PT1=200") print("Marks obtained in PT1=",totmarkspt1) print("Percentage of marks in PT1=",ppt1) if ppt1>90: print("Scored A1 grade") if ppt1>80 and ppt2<90: print("Scored A2 grade") if ppt1>70 and ppt1<80: print("Scored B1 grade") if ppt1>60 and ppt1<70: print("Scored B2 grade") if ppt1>50 and ppt1<60: print("Scored C1 grade") if ppt1>40 and ppt1<50: print("Scored C2 grade") if ppt1>33 and ppt1<40: print("Scored D grade") if ppt1<33: print("Failed") #CALCULATION OF PT2 MARKS OF PCB WITH HINDI STREAM CLASS 11 def pt2h(): print("Now inputting marks for Periodic Test 2 of PCB with Hindi Stream Class 11") print() hpt2h=int(input("Enter the marks scored in Periodic Test 2 Of Hindi:")) ept2h=int(input("Enter the marks scored in Periodic Test 2 of English:")) biopt2h=int(input("Enter the marks scored in Periodic Test 2 of Biology:")) cpt2h=int(input("EEnter the marks scored in Periodic Test 2 of Chemistry:")) ppt2h=int(input("Enter the marks scored in Periodic Test 2 of Physics:")) totmarkspt2=hpt2h+ept2h+biopt2h+ppt2h+cpt2h ppt2=totmarkspt2/200*100 print("Total Marks in PT2=200") print("Marks obtained in PT2=",totmarkspt2) print("Percentage of marks in PT2=",ppt2) if ppt2>90: print("Scored A1 grade") if ppt2>80 and ppt2<90: print("Scored A2 grade") if ppt2>70 and ppt2<80: print("Scored B1 grade") if ppt2>60 and ppt2<70: print("Scored B2 grade") if ppt2>50 and ppt2<60: print("Scored C1 grade") if ppt2>40 and ppt2<50: print("Scored C2 grade") if ppt2>33 and ppt2<40: print("Scored D grade") if ppt2<33: print("Failed") #CALCULATION OF HALF YEARLY MARKS OF PCB WITH HINDI STREAM CLASS 11 def hyh(): print("Now inputting marks for Half Yearly Examination of PCB with Hindi Stream Class 11") print() hhyh=int(input("Enter the marks scored in Half Yearly Examination of Hindi:")) ehyh=int(input("Enter the marks scored in Half Yearly Examination of English:")) biohyh=int(input("Enter the marks scored in Half Yearly Examination of Biology:")) chyh=int(input("Enter the marks scored in HalF Yearly Examination of Chemistry:")) phyh=int(input("Enter the marks scored in Half Yearly Examination of Physics :")) totmarkshy=hhyh+ehyh+biohyh+phyh+chyh phy=totmarkshy/370*100 print("Total Marks in Half Yearly=370") print("Marks obtained in Half Yearly=",totmarkshy) print("Percentage of marks in Half Yearly=",phy) if phy>90: print("Scored A1 grade") if phy>80 and phy<90: print("Scored A2 grade") if phy>70 and phy<80: print("Scored B1 grade") if phy>60 and phy<70: print("Scored B2 grade") if phy>50 and phy<60: print("Scored C1 grade") if phy>40 and phy<50: print("Scored C2 grade") if phy>33 and phy<40: print("Scored D grade") if phy<33: print("Failed") #CALCULATION OF PRACTICAL MARKS IN CLASS 11 PCB WITH HINDI STREAM def prh(): print("Now inputting marks for Practicals of PCB with Hindi Stream Class 11") print() hprh=int(input("Enter the marks scored in practicals of Hindi")) eprh=int(input("Enter the marks scored in practicals of English")) bioprh=int(input("Enter the marks scored in practicals of Biology")) cprh=int(input("Enter the marks scored in practicals of Chemistry")) pprh=int(input("Enter the marks scored in practicals of Physics")) totmarkspr=hprh+eprh+bioprh+pprh+cprh ppr=totmarkspr/130*100 print("Total Marks in Practical=130") print("Marks obtained in Practical=",totmarkspr) print("Percentage of marks in Practical=",ppr) if ppr>90: print("Scored A1 grade") if ppr>80 and ppr<90: print("Scored A2 grade") if ppr>70 and ppr<80: print("Scored B1 grade") if ppr>60 and ppr<70: print("Scored B2 grade") if ppr>50 and ppr<60: print("Scored C1 grade") if ppr>40 and ppr<50: print("Scored C2 grade") if ppr>33 and ppr<40: print("Scored D grade") if ppr<33: print("Failed") #CALCULATION OF SESSION ENDING MARKS OF PCB WITH HINDI STREAM CLASS 11 def sseh(): print("Now inputting marks for Session Ending Examination of PCB with Hindi Stream Class 11") print() hsseh=int(input("Enter the marks scored in Session Ending Examination of Hindi")) esseh=int(input("Enter the marks scored in Session Ending Examination of English")) biosseh=int(input("Enter the marks scored in Session Ending Examination of Biology")) csseh=int(input("Enter the marks scored in Session Ending Examination of Chemistry")) psseh=int(input("Enter the marks scored in Session Ending Examination of Physics")) totmarkssse=hsseh+esseh+biosseh+psseh+csseh psse=totmarkssse/130*100 print("Total Marks in Session Ending Examination=130") print("Marks obtained in Session Ending Examination=",totmarkssse) print("Percentage of marks in Session Ending Examination=",psse) if psse>90: print("Scored A1 grade") if psse>80 and psse<90: print("Scored A2 grade") if psse>70 and psse<80: print("Scored B1 grade") if psse>60 and psse<70: print("Scored B2 grade") if psse>50 and psse<60: print("Scored C1 grade") if psse>40 and psse<50: print("Scored C2 grade") if psse>33 and psse<40: print("Scored D grade") if psse<33: print("Failed") #CLASS 11 HUMANITIES STREAM #CALCULATION OF PT1 MARKS OF HUMANITIES STREAM CLASS 11 def pt1hum(): print("Now inputting marks for Periodic Test 1 of Humanities Stream Class 11") print() hpt1hum=int(input("Enter the marks scored in Periodic Test 1 of Hindi:")) ept1hum=int(input("Enter the marks scored in Periodic Test 1 of English:")) polpt1hum=int(input("Enter the marks scored in Periodic Test 1 of Political Science:")) geopt1hum=int(input("Enter the marks scored in Periodic Test 1 of Geography:")) hispt1hum=int(input("Enter the marks scored in Periodic Test 1 of History:")) totmarkspt1=hpt1hum+ept1hum+polpt1hum+geopt1hum+hispt1hum ppt1=totmarkspt1/200*100 print("Total Marks in PT1=200") print("Marks obtained in PT1=",totmarkspt1) print("Percentage of marks in PT1=",ppt1) if ppt1>90: print("Scored A1 grade") if ppt1>80 and ppt2<90: print("Scored A2 grade") if ppt1>70 and ppt1<80: print("Scored B1 grade") if ppt1>60 and ppt1<70: print("Scored B2 grade") if ppt1>50 and ppt1<60: print("Scored C1 grade") if ppt1>40 and ppt1<50: print("Scored C2 grade") if ppt1>33 and ppt1<40: print("Scored D grade") if ppt1<33: print("Failed") #CALCULATION OF PT2 MARKS OF HUMANITIES STREAM CLASS 11 def pt2hum(): print("Now inputting marks for Periodic Test 2 of Humanities Stream Class 11") print() hpt2hum=int(input("Enter the marks scored in Periodic Test 2 Of Hindi:")) ept2hum=int(input("Enter the marks scored in Periodic Test 2 of English:")) polpt2hum=int(input("Enter the marks scored in Periodic Test 2 of Political Science:")) geopt2hum=int(input("EEnter the marks scored in Periodic Test 2 of Geography:")) hispt2hum=int(input("Enter the marks scored in Periodic Test 2 of History:")) totmarkspt2=hpt2hum+ept2hum+polpt2hum+geopt2hum+hispt2hum ppt2=totmarkspt2/200*100 print("Total Marks in PT2=200") print("Marks obtained in PT2=",totmarkspt2) print("Percentage of marks in PT2=",ppt2) if ppt2>90: print("Scored A1 grade") if ppt2>80 and ppt2<90: print("Scored A2 grade") if ppt2>70 and ppt2<80: print("Scored B1 grade") if ppt2>60 and ppt2<70: print("Scored B2 grade") if ppt2>50 and ppt2<60: print("Scored C1 grade") if ppt2>40 and ppt2<50: print("Scored C2 grade") if ppt2>33 and ppt2<40: print("Scored D grade") if ppt2<33: print("Failed") #CALCULATION OF HALF YEARLY MARKS OF HUMANITIES STREAM CLASS 11 def hyhum(): print("Now inputting marks for Half Yearly Examination of Humanities Stream Class 11") print() hhyhum=int(input("Enter the marks scored in Half Yearly Examination of Hindi:")) ehyhum=int(input("Enter the marks scored in Half Yearly Examination of English:")) polhyhum=int(input("Enter the marks scored in Half Yearly Examination of Political Science:")) geohyhum=int(input("Enter the marks scored in HalF Yearly Examination of Geography:")) hishyhum=int(input("Enter the marks scored in Half Yearly Examination of History:")) totmarkshy=hhyhum+ehyhum+polhyhum+geohyhum+hishyhum phy=totmarkshy/400*100 print("Total Marks in Half Yearly=400") print("Marks obtained in Half Yearly=",totmarkshy) print("Percentage of marks in Half Yearly=",phy) if phy>90: print("Scored A1 grade") if phy>80 and phy<90: print("Scored A2 grade") if phy>70 and phy<80: print("Scored B1 grade") if phy>60 and phy<70: print("Scored B2 grade") if phy>50 and phy<60: print("Scored C1 grade") if phy>40 and phy<50: print("Scored C2 grade") if phy>33 and phy<40: print("Scored D grade") if phy<33: print("Failed") #CALCULATION OF INTERNAL MARKS IN CLASS 11 HUMANITIES STREAM def prhum(): print("Now inputting internal marks of Humanities Stream Class 11") print() hprhum=int(input("Enter the marks scored in internals of Hindi")) eprhum=int(input("Enter the marks scored in internals of English")) polprhum=int(input("Enter the marks scored in internals of Political Science")) geoprhum=int(input("Enter the marks scored in internals of Geography")) hisprhum=int(input("Enter the marks scored in internals of History")) totmarkspr=hprhum+eprhum+polprhum+geoprhum+hisprhum ppr=totmarkspr/100*100 print("Total Marks in internals=100") print("Marks obtained in Internals=",totmarkspr) print("Percentage of marks in Internals=",ppr) if ppr>90: print("Scored A1 grade") if ppr>80 and ppr<90: print("Scored A2 grade") if ppr>70 and ppr<80: print("Scored B1 grade") if ppr>60 and ppr<70: print("Scored B2 grade") if ppr>50 and ppr<60: print("Scored C1 grade") if ppr>40 and ppr<50: print("Scored C2 grade") if ppr>33 and ppr<40: print("Scored D grade") if ppr<33: print("Failed") #CALCULATION OF SESSION ENDING MARKS OF HUMANITIES STREAM CLASS 11 def ssehum(): print("Now inputting marks for Session Ending Examination of Humanities Stream Class 11") print() hssehum=int(input("Enter the marks scored in Session Ending Examination of Hindi")) essehum=int(input("Enter the marks scored in Session Ending Examination of English")) polssehum=int(input("Enter the marks scored in Session Ending Examination of Political Science")) geossehum=int(input("Enter the marks scored in Session Ending Examination of Geography")) hisssehum=int(input("Enter the marks scored in Session Ending Examination of History")) totmarkssse=hssehum+essehum+polssehum+geossehum+hisssehum psse=totmarkssse/400*100 print("Total Marks in Half Yearly=400") print("Marks obtained in Half Yearly=",totmarkssse) print("Percentage of marks in Half Yearly=",psse) if psse>90: print("Scored A1 grade") if psse>80 and psse<90: print("Scored A2 grade") if psse>70 and psse<80: print("Scored B1 grade") if psse>60 and psse<70: print("Scored B2 grade") if psse>50 and psse<60: print("Scored C1 grade") if psse>40 and psse<50: print("Scored C2 grade") if psse>33 and psse<40: print("Scored D grade") if psse<33: print("Failed") #CLASS 6-8 #CALCULATION OF MARKS FOR CLASS 6 TO 8 IN PERIODIC TEST 1 def pt1sec(): print("Now inputting marks for Periodic Test 1 of Class 6 to 8") print() hpt1sec=int(input("Enter the marks scored in Periodic Test 1 of Hindi")) ept1sec=int(input("Enter the marks scored in Periodic Test 1 of English")) soscpt1sec=int(input("Enter the marks scored in Periodic Test 1 of Social Science")) scpt1sec=int(input("Enter the marks scored in Periodic Test 1 of Science")) sktpt1sec=int(input("Enter the marks scored in Periodic Test 1 of Sanksrit")) mpt1sec=int(input("Enter the marks scored in Periodic Test 1 of Mathematics")) totmarkspt1=mpt1sec+sktpt1sec+scpt1sec+hpt1sec+soscpt1sec+ept1sec ppt1=totmarkspt1/240*100 print("Total Marks in PT1=240") print("Marks obtained in PT1=",totmarkspt1) print("Percentage of marks in PT1=",ppt1) if ppt1>90: print("Scored A1 grade") if ppt1>80 and ppt2<90: print("Scored A2 grade") if ppt1>70 and ppt1<80: print("Scored B1 grade") if ppt1>60 and ppt1<70: print("Scored B2 grade") if ppt1>50 and ppt1<60: print("Scored C1 grade") if ppt1>40 and ppt1<50: print("Scored C2 grade") if ppt1>33 and ppt1<40: print("Scored D grade") if ppt1<33: print("Scored E grade") #CALCULATION OF MARKS IN PERIODIC TEST 2 OF CLASS 6 TO 8 def pt2sec(): print("Now inputting marks for Periodic Test 2 of Class 6 to 8") print() hpt2sec=int(input("Enter the marks scored in Periodic Test 2 of Hindi")) ept2sec=int(input("Enter the marks scored in Periodic Test 2 of English")) soscpt2sec=int(input("Enter the marks scored in Periodic Test 2 of Social Science")) scpt2sec=int(input("Enter the marks scored in Periodic Test 2 of Science")) sktpt2sec=int(input("Enter the marks scored in Periodic Test 2 of Sanksrit")) mpt2sec=int(input("Enter the marks scored in Periodic Test 2 of Mathematics")) totmarkspt2=mpt2sec+sktpt2sec+scpt2sec+hpt2sec+soscpt2sec+ept2sec ppt2=totmarkspt2/240*100 print("Total Marks in PT2=240") print("Marks obtained in PT2=",totmarkspt2) print("Percentage of marks in PT2=",ppt2) if ppt2>90: print("Scored A1 grade") if ppt2>80 and ppt2<90: print("Scored A2 grade") if ppt2>70 and ppt2<80: print("Scored B1 grade") if ppt2>60 and ppt2<70: print("Scored B2 grade") if ppt2>50 and ppt2<60: print("Scored C1 grade") if ppt2>40 and ppt2<50: print("Scored C2 grade") if ppt2>33 and ppt2<40: print("Scored D grade") if ppt2<33: print("Scored E grade") #CALCULATION OF MARKS IN HALF YEARLY OF CLASS 6 TO 8 def hysec(): print("Now inputting marks for Half Yearly Examination of Class 6 to 8") print() hhysec=int(input("Enter the marks scored in Half Yearly of Hindi")) ehysec=int(input("Enter the marks scored in Half Yearly of English")) soschysec=int(input("Enter the marks scored in Half Yearly of Social Science")) schysec=int(input("Enter the marks scored in Half Yearly of Science")) skthysec=int(input("Enter the marks scored in Half Yearly of Sanksrit")) mhysec=int(input("Enter the marks scored in Half Yearly of Mathematics")) totmarkshy=mhysec+skthysec+schysec+hhysec+soschysec+ehysec phy=totmarkshy/480*100 print("Total Marks in Half Yearly=480") print("Marks obtained in Half Yearly=",totmarkshy) print("Percentage of marks in Half Yearly=",phy) if phy>90: print("Scored A1 grade") if phy>80 and phy<90: print("Scored A2 grade") if phy>70 and phy<80: print("Scored B1 grade") if phy>60 and phy<70: print("Scored B2 grade") if phy>50 and phy<60: print("Scored C1 grade") if phy>40 and phy<50: print("Scored C2 grade") if phy>33 and phy<40: print("Scored D grade") if phy<33: print("Scored E grade") #CALCULATION OF MARKS IN SESSION ENDING EXAMINATION OF CLASS 6 TO 8 def ssesec(): print("Now inputting marks for Session Ending Examination of Class 6 to 8") print() hssesec=int(input("Enter the marks scored in Session Ending Examination of Hindi")) essesec=int(input("Enter the marks scored in Session Ending Examination of English")) soscssesec=int(input("Enter the marks scored in Session Ending Examination of Social Science")) scssesec=int(input("Enter the marks scored in Session Ending Examination of Science")) sktssesec=int(input("Enter the marks scored in Session Ending Examination of Sanksrit")) mssesec=int(input("Enter the marks scored in Session Ending Examination of Mathematics")) totmarkssse=mssesec+sktssesec+scssesec+hssesec+soscssesec+essesec psse=totmarkssse/480*100 print("Total Marks in Session Ending Examination=480") print("Marks obtained in Session Ending Examination=",totmarkssse) print("Percentage of marks in Session Ending Examination=",psse) if psse>90: print("Scored A1 grade") if psse>80 and psse<90: print("Scored A2 grade") if psse>70 and psse<80: print("Scored B1 grade") if psse>60 and psse<70: print("Scored B2 grade") if psse>50 and psse<60: print("Scored C1 grade") if psse>40 and psse<50: print("Scored C2 grade") if psse>33 and psse<40: print("Scored D grade") if psse<33: print("Scored E grade") #CALCULATION OF INTERNAL MARKS CLASS 6 TO 8 def prsec(): print("Now inputting marks for Internals of Class 6 to 8") print() hprsec=int(input("Enter the marks scored in Internals of Hindi")) eprsec=int(input("Enter the marks scored in Internals of English")) soscprsec=int(input("Enter the marks scored in Internals of Social Science")) scprsec=int(input("Enter the marks scored in Internals of Science")) sktprsec=int(input("Enter the marks scored in Internals of Sanksrit")) mprsec=int(input("Enter the marks scored in Internals of Mathematics")) totmarkspr=mprsec+sktprsec+scprsec+hprsec+soscprsec+eprsec ppr=totmarkspr/120*100 print("Total Marks in Internals=120") print("Marks obtained in Internals=",totmarkspr) print("Percentage of marks in Internals=",ppr) if ppr>90: print("Scored A1 grade") if ppr>80 and ppr<90: print("Scored A2 grade") if ppr>70 and ppr<80: print("Scored B1 grade") if ppr>60 and ppr<70: print("Scored B2 grade") if ppr>50 and ppr<60: print("Scored C1 grade") if ppr>40 and ppr<50: print("Scored C2 grade") if ppr>33 and ppr<40: print("Scored D grade") if ppr<33: print("Scored E grade") #CLASS 9 HINDI #CALCULATION OF MARKS FOR CLASS 9 HINDI IN PERIODIC TEST 1 def pt1h9(): print("Now inputting marks for Periodic Test 1 of Class 9 Hindi") print() hpt1h9=int(input("Enter the marks scored in Periodic Test 1 of Hindi")) ept1h9=int(input("Enter the marks scored in Periodic Test 1 of English")) soscpt1h9=int(input("Enter the marks scored in Periodic Test 1 of Social Science")) scpt1h9=int(input("Enter the marks scored in Periodic Test 1 of Science")) mpt1h9=int(input("Enter the marks scored in Periodic Test 1 of Mathematics")) totmarkspt1=mpt1h9+hpt1h9+scpt1h9+soscpt1h9+ept1h9 ppt1=totmarkspt1/200*100 print("Total Marks in PT1=200") print("Marks obtained in PT1=",totmarkspt1) print("Percentage of marks in PT1=",ppt1) if ppt1>90: print("Scored A1 grade") if ppt1>80 and ppt2<90: print("Scored A2 grade") if ppt1>70 and ppt1<80: print("Scored B1 grade") if ppt1>60 and ppt1<70: print("Scored B2 grade") if ppt1>50 and ppt1<60: print("Scored C1 grade") if ppt1>40 and ppt1<50: print("Scored C2 grade") if ppt1>33 and ppt1<40: print("Scored D grade") if ppt1<33: print("Failed") #CALCULATION OF MARKS IN PERIODIC TEST 2 OF CLASS 9 HINDI def pt2h9(): print("Now inputting marks for Periodic Test 2 of Class 9 Hindi") print() hpt2h9=int(input("Enter the marks scored in Periodic Test 2 of Hindi")) ept2h9=int(input("Enter the marks scored in Periodic Test 2 of English")) soscpt2h9=int(input("Enter the marks scored in Periodic Test 2 of Social Science")) scpt2h9=int(input("Enter the marks scored in Periodic Test 2 of Science")) mpt2h9=int(input("Enter the marks scored in Periodic Test 2 of Mathematics")) totmarkspt2=mpt2h9+hpt2h9+scpt2h9+soscpt2h9+ept2h9 ppt2=totmarkspt2/200*100 print("Total Marks in PT2=200") print("Marks obtained in PT2=",totmarkspt2) print("Percentage of marks in PT2=",ppt2) if ppt2>90: print("Scored A1 grade") if ppt2>80 and ppt2<90: print("Scored A2 grade") if ppt2>70 and ppt2<80: print("Scored B1 grade") if ppt2>60 and ppt2<70: print("Scored B2 grade") if ppt2>50 and ppt2<60: print("Scored C1 grade") if ppt2>40 and ppt2<50: print("Scored C2 grade") if ppt2>33 and ppt2<40: print("Scored D grade") if ppt2<33: print("Failed") #CALCULATION OF MARKS IN HALF YEARLY OF CLASS 9 HINDI def hyh9(): print("Now inputting marks for Half Yearly Examination of Class 9 Hindi") print() hhyh9=int(input("Enter the marks scored in Half Yearly of Hindi")) ehyh9=int(input("Enter the marks scored in Half Yearly of English")) soschyh9=int(input("Enter the marks scored in Half Yearly of Social Science")) schyh9=int(input("Enter the marks scored in Half Yearly of Science")) mhyh9=int(input("Enter the marks scored in Half Yearly of Mathematics")) totmarkshy=mhyh9+hhyh9+schyh9+soschyh9+ehyh9 phy=totmarkshy/480*100 print("Total Marks in Half Yearly=480") print("Marks obtained in Half Yearly=",totmarkshy) print("Percentage of marks in Half Yearly=",phy) if phy>90: print("Scored A1 grade") if phy>80 and phy<90: print("Scored A2 grade") if phy>70 and phy<80: print("Scored B1 grade") if phy>60 and phy<70: print("Scored B2 grade") if phy>50 and phy<60: print("Scored C1 grade") if phy>40 and phy<50: print("Scored C2 grade") if phy>33 and phy<40: print("Scored D grade") if phy<33: print("Failed") #CALCULATION OF MARKS IN SESSION ENDING EXAMINATION OF CLASS 9 HINDI def sseh9(): print("Now inputting marks for Session Ending Examination of Class 9 Hindi") print() hsseh9=int(input("Enter the marks scored in Session Ending Examination of Hindi")) esseh9=int(input("Enter the marks scored in Session Ending Examination of English")) soscsseh9=int(input("Enter the marks scored in Session Ending Examination of Social Science")) scsseh9=int(input("Enter the marks scored in Session Ending Examination of Science")) sktsseh9=int(input("Enter the marks scored in Session Ending Examination of Sanksrit")) msseh9=int(input("Enter the marks scored in Session Ending Examination of Mathematics")) totmarkssse=msseh9+hsseh9+scsseh9+soscsseh9+esseh9 psse=totmarkssse/400*100 print("Total Marks in Session Ending Examiantion=400") print("Marks obtained in Session Ending Examination=",totmarkssse) print("Percentage of marks in Session Ending Examination=",psse) if psse>90: print("Scored A1 grade") if psse>80 and psse<90: print("Scored A2 grade") if psse>70 and psse<80: print("Scored B1 grade") if psse>60 and psse<70: print("Scored B2 grade") if psse>50 and psse<60: print("Scored C1 grade") if psse>40 and psse<50: print("Scored C2 grade") if psse>33 and psse<40: print("Scored D grade") if psse<33: print("Failed") #CALCULATION OF INTERNAL MARKS CLASS 9 HINDI def prh9(): print("Now inputting marks for Internals of Class 9 Hindi") print() hprh9=int(input("Enter the marks scored in Internals of Hindi")) eprh9=int(input("Enter the marks scored in Internals of English")) soscprh9=int(input("Enter the marks scored in Internals of Social Science")) scprh9=int(input("Enter the marks scored in Internals of Science")) mprh9=int(input("Enter the marks scored in Internals of Mathematics")) totmarkspr=mprh9+hprh9+scprh9+soscprh9+eprh9 ppr=totmarkspr/100*100 print("Total Marks in Internals=100") print("Marks obtained in Internals=",totmarkspr) print("Percentage of marks in Internals=",ppr) if ppr>90: print("Scored A1 grade") if ppr>80 and ppr<90: print("Scored A2 grade") if ppr>70 and ppr<80: print("Scored B1 grade") if ppr>60 and ppr<70: print("Scored B2 grade") if ppr>50 and ppr<60: print("Scored C1 grade") if ppr>40 and ppr<50: print("Scored C2 grade") if ppr>33 and ppr<40: print("Scored D grade") if ppr<33: print("Failed") #CLASS 9 SANSKRIT #CALCULATION OF MARKS FOR CLASS 9 SANSKRIT IN PERIODIC TEST 1 def pt1s9(): sktpt1s9=int(input("Enter the marks you scored in Periodic Test 1 of Sanskrit")) ept1s9=int(input("Enter the marks you scored in Periodic Test 1 of English")) soscpt1s9=int(input("Enter the marks you scored in Periodic Test 1 of Social Science")) scpt1s9=int(input("Enter the marks you scored in Periodic Test 1 of Science")) mpt1s9=int(input("Enter the marks you scored in Periodic Test 1 of Mathematics")) totmarkspt1=mpt1s9+sktpt1s9+scpt1s9+soscpt1s9+ept1s9 ppt1=totmarkspt1/200*100 print("Total Marks in PT1=200") print("Marks obtained in PT1=",totmarkspt1) print("Percentage of marks in PT1=",ppt1) if ppt1>90: print("Scored A1 grade") if ppt1>80 and ppt2<90: print("Scored A2 grade") if ppt1>70 and ppt1<80: print("Scored B1 grade") if ppt1>60 and ppt1<70: print("Scored B2 grade") if ppt1>50 and ppt1<60: print("Scored C1 grade") if ppt1>40 and ppt1<50: print("Scored C2 grade") if ppt1>33 and ppt1<40: print("Scored D grade") if ppt1<33: print("Failed") #CALCULATION OF MARKS IN PERIODIC TEST 2 OF CLASS 9 SANSKRIT def pt2s9(): sktpt2s9=int(input("Enter the marks you scored in Periodic Test 2 of Sanskrit")) ept2s9=int(input("Enter the marks you scored in Periodic Test 2 of English")) soscpt2s9=int(input("Enter the marks you scored in Periodic Test 2 of Social Science")) scpt2s9=int(input("Enter the marks you scored in Periodic Test 2 of Science")) mpt2s9=int(input("Enter the marks you scored in Periodic Test 2 of Mathematics")) totmarkspt2=mpt2s9+sktpt2s9+scpt2s9+soscpt2s9+ept2s9 ppt2=totmarkspt2/200*100 print("Total Marks in PT2=200") print("Marks obtained in PT2=",totmarkspt2) print("Percentage of marks in PT2=",ppt2) if ppt2>90: print("Scored A1 grade") if ppt2>80 and ppt2<90: print("Scored A2 grade") if ppt2>70 and ppt2<80: print("Scored B1 grade") if ppt2>60 and ppt2<70: print("Scored B2 grade") if ppt2>50 and ppt2<60: print("Scored C1 grade") if ppt2>40 and ppt2<50: print("Scored C2 grade") if ppt2>33 and ppt2<40: print("Scored D grade") if ppt2<33: print("Failed") #CALCULATION OF MARKS IN HALF YEARLY OF CLASS 9 SANSKRIT def hys9(): skthys9=int(input("Enter the marks scored in Half Yearly of Sanskrit")) ehys9=int(input("Enter the marks scored in Half Yearly of English")) soschys9=int(input("Enter the marks scored in Half Yearly of Social Science")) schys9=int(input("Enter the marks scored in Half Yearly of Science")) mhys9=int(input("Enter the marks scored in Half Yearly of Mathematics")) totmarkshy=mhys9+skthys9+schys9+soschys9+ehys9 phy=totmarkshy/400*100 print("Total Marks in Half Yearly=400") print("Marks obtained in PT1=",totmarkshy) print("Percentage of marks in PT1=",phy) if phy>90: print("Scored A1 grade") if phy>80 and phy<90: print("Scored A2 grade") if phy>70 and phy<80: print("Scored B1 grade") if phy>60 and phy<70: print("Scored B2 grade") if phy>50 and phy<60: print("Scored C1 grade") if phy>40 and phy<50: print("Scored C2 grade") if phy>33 and phy<40: print("Scored D grade") if phy<33: print("Failed") #CALCULATION OF MARKS IN SESSION ENDING EXAMINATION OF CLASS 9 SANSKRIT def sses9(): sktsses9=int(input("Enter the marks scored in Session Ending Examination of Sanskrit")) esses9=int(input("Enter the marks scored in Session Ending Examination of English")) soscsses9=int(input("Enter the marks scored in Session Ending Examination of Social Science")) scsses9=int(input("Enter the marks scored in Session Ending Examination of Science")) sktsses9=int(input("Enter the marks scored in Session Ending Examination of Sanksrit")) msses9=int(input("Enter the marks scored in Session Ending Examination of Mathematics")) totmarkssse=msses9+sktsses9+scsses9+soscsses9+esses9 psse=totmarkssse/400*100 print("Total Marks in Session Ending Examination=400") print("Marks obtained in Session Ending Examiantion=",totmarkssse) print("Percentage of marks in Session Ending Examination=",psse) if psse>90: print("Scored A1 grade") if psse>80 and psse<90: print("Scored A2 grade") if psse>70 and psse<80: print("Scored B1 grade") if psse>60 and psse<70: print("Scored B2 grade") if psse>50 and psse<60: print("Scored C1 grade") if psse>40 and psse<50: print("Scored C2 grade") if psse>33 and psse<40: print("Scored D grade") if psse<33: print("Failed") #CALCULATION OF INTERNAL MARKS CLASS 9 SANSKRIT def prs9(): sktprs9=int(input("Enter the marks scored in Internals of Sanskrit")) eprs9=int(input("Enter the marks scored in Internals of English")) soscprs9=int(input("Enter the marks scored in Internals of Social Science")) scprs9=int(input("Enter the marks scored in Internals of Science")) mprs9=int(input("Enter the marks scored in Internals of Mathematics")) totmarkspr=mprs9+sktprs9+scprs9+soscprs9+eprs9 ppr=totmarkspr/100*100 print("Total Marks in Internals=100") print("Marks obtained in Internals=",totmarkspr) print("Percentage of marks in Internals=",ppr) if ppr>90: print("Scored A1 grade") if ppr>80 and ppr<90: print("Scored A2 grade") if ppr>70 and ppr<80: print("Scored B1 grade") if ppr>60 and ppr<70: print("Scored B2 grade") if ppr>50 and ppr<60: print("Scored C1 grade") if ppr>40 and ppr<50: print("Scored C2 grade") if ppr>33 and ppr<40: print("Scored D grade") if ppr<33: print("Failed") #INDIVIDUAL SUBJECT MARKS #MATHS #MATHS FOR CLASS 1 TO 5 def primaths(): mpt1pri=int(input("Enter the marks you scored in Periodic Test 1 of Mathematics")) mpt2pri=int(input("Enter the marks you scored in Periodic Test 2 of Mathematics")) mhypri=int(input("Enter the marks you scored in Half Yearly Examination of Mathematics")) mssepri=int(input("Enter the marks you scored in Session Ending Examination of Mathematics")) mprpri=int(input("Enter the marks you scored in Internal of Mathematics")) totmarksprimth=mpt1pri+mpt2pri+mhypri+mssepri totmarksprimpr=mprpri pmthpri=totmarksprimth/160*100 pmprpri=totmarksprimpr/20*100 totmarksprim=totmarksprimth+totmarksprimpr pmpri=totmarksprim/180*100 print("Total marks in maths theory=160") print("Total Marks obtained in maths",totmarksprim) print("Marks obtained in maths theory=",totmarksprimth) print("Marks obtained in maths practical=",totmarksprimpr) print("Percentage of marks obtained in maths theory=",pmthpri,"%") print("Percentage of marks obtained in maths practical=",pmprpri,"%") print("Percentage of marks obtained in maths=",pmpri,"%") if pmpri>90: print("You scored A1 grade") elif pmpri>80 and pmpri<90: print("You scored A2 grade") elif pmpri>70 and pmpri<80: print("You scored B1 grade") elif pmpri>60 and pmpri<70: print("You scored B2 grade") elif pmpri>50 and pmpri<60: print("You scored C1 grade") elif pmpri>40 and pmpri<50: print("You scored C2 grade") elif pmpri>33 and pmpri<40: print("You scored D grade") elif pmpri<33: print("You scored E grade") #MATHS FOR CLASS 6 TO 8 def secmaths(): mpt1sec=int(input("Enter the marks you scored in Periodic Test 1 of Mathematics")) mpt2sec=int(input("Enter the marks you scored in Periodic Test 2 of Mathematics")) mhysec=int(input("Enter the marks scored in Half Yearly of Mathematics")) mssesec=int(input("Enter the marks scored in Session Ending Examination of Mathematics")) mprsec=int(input("Enter the marks scored in Internals of Mathematics")) totmarkssecmth=mpt1sec+mpt2sec+mhysec+mssesec totmarkssecmpr=mprsec pmthsec=totmarkssecmth/160*100 pmprsec=totmarkssecmpr/20*100 totmarkssecm=totmarkssecmth+totmarkssecmpr pmsec=totmarkssecm/180*100 print("Total marks in maths theory=160") print("Total Marks obtained in maths",totmarkssecm) print("Marks obtained in maths theory=",totmarkssecmth) print("Marks obtained in maths practical=",totmarkssecmpr) print("Percentage of marks obtained in maths theory=",pmthsec,"%") print("Percentage of marks obtained in maths practical=",pmprsec,"%") print("Percentage of marks obtained in maths=",pmsec,"%") if pmsec>90: print("You scored A1 grade") elif pmsec>80 and pmsec<90: print("You scored A2 grade") elif pmsec>70 and pmsec<80: print("You scored B1 grade") elif pmsec>60 and pmsec<70: print("You scored B2 grade") elif pmsec>50 and pmsec<60: print("You scored C1 grade") elif pmsec>40 and pmsec<50: print("You scored C2 grade") elif pmsec>33 and pmsec<40: print("You scored D grade") elif pmsec<33: print("You scored E grade") #MATHS FOR CLASS 9 HINDI def hmaths(): mpt1h9=int(input("Enter the marks you scored in Periodic Test 1 of Mathematics")) mpt2h9=int(input("Enter the marks you scored in Periodic Test 2 of Mathematics")) mhyh9=int(input("Enter the marks scored in Half Yearly of Mathematics")) msseh9=int(input("Enter the marks scored in Session Ending Examination of Mathematics")) mprh9=int(input("Enter the marks scored in Internals of Mathematics")) totmarksh9mth=mpt1h9+mpt2h9+mhyh9+msseh9 totmarksh9mpr=mprh9 pmthh9=totmarksh9mth/160*100 pmprh9=totmarksh9mpr/20*100 totmarksh9m=totmarksh9mth+totmarksh9mpr pmh9=totmarksh9m/180*100 print("Total marks in maths theory=160") print("Total Marks obtained in maths",totmarksh9m) print("Marks obtained in maths theory=",totmarksh9mth) print("Marks obtained in maths practical=",totmarksh9mpr) print("Percentage of marks obtained in maths theory=",pmthh9,"%") print("Percentage of marks obtained in maths practical=",pmprh9,"%") print("Percentage of marks obtained in maths=",pmh9,"%") if pmh9>90: print("You scored A1 grade") elif pmh9>80 and pmh9<90: print("You scored A2 grade") elif pmh9>70 and pmh9<80: print("You scored B1 grade") elif pmh9>60 and pmh9<70: print("You scored B2 grade") elif pmh9>50 and pmh9<60: print("You scored C1 grade") elif pmh9>40 and pmh9<50: print("You scored C2 grade") elif pmh9>33 and pmh9<40: print("You scored D grade") elif pmh9<33: print("You scored E grade") #MATHS FOR CLASS 9 SANSKRIT def smaths(): mpt1s9=int(input("Enter the marks you scored in Periodic Test 1 of Mathematics")) mpt2s9=int(input("Enter the marks you scored in Periodic Test 2 of Mathematics")) mhys9=int(input("Enter the marks scored in Half Yearly of Mathematics")) msses9=int(input("Enter the marks scored in Session Ending Examination of Mathematics")) mprs9=int(input("Enter the marks scored in Internals of Mathematics")) totmarkss9mth=mpt1s9+mpt2s9+mhys9+msses9 totmarkss9mpr=mprs9 pmths9=totmarkss9mth/160*100 pmprs9=totmarkss9mpr/20*100 totmarkss9m=totmarkss9mth+totmarkss9mpr pms9=totmarkss9m/180*100 print("Total marks in maths theory=160") print("Total Marks obtained in maths",totmarkss9m) print("Marks obtained in maths theory=",totmarkss9mth) print("Marks obtained in maths practical=",totmarkss9mpr) print("Percentage of marks obtained in maths theory=",pmths9,"%") print("Percentage of marks obtained in maths practical=",pmprs9,"%") print("Percentage of marks obtained in maths=",pms9,"%") if pms9>90: print("You scored A1 grade") elif pms9>80 and pms9<90: print("You scored A2 grade") elif pms9>70 and pms9<80: print("You scored B1 grade") elif pms9>60 and pms9<70: print("You scored B2 grade") elif pms9>50 and pms9<60: print("You scored C1 grade") elif pms9>40 and pms9<50: print("You scored C2 grade") elif pms9>33 and pms9<40: print("You scored D grade") elif pms9<33: print("You scored E grade") #MATHS FOR CLASS 11 PCM WITH CS def mathscs(): mpt1cs=int(input("Enter the marks you scored in Periodic Test 1 of Mathematics :")) mpt2cs=int(input("Enter the marks you scored in Periodic Test 2 Of Mathematics:")) mhycs=int(input("Enter the marks you scored in Half Yearly Examination of Mathematics:")) mssecs=int(input("Enter the marks you scored in Session Ending Examination of Mathematics")) mprcs=int(input("Enter the marks you scored in practicals of Mathematics")) totmarkscsmth=mpt1cs+mpt2cs+mhycs+mssecs totmarkscsmpr=mprcs pmthcs=totmarkscsmth/160*100 pmprcs=totmarkscsmpr/20*100 totmarkscsm=totmarkscsmth+totmarkscsmpr pmcs=totmarkscsm/180*100 print("Total marks in maths theory=160") print("Total Marks obtained in maths",totmarkscsm) print("Marks obtained in maths theory=",totmarkscsmth) print("Marks obtained in maths practical=",totmarkscsmpr) print("Percentage of marks obtained in maths theory=",pmthcs,"%") print("Percentage of marks obtained in maths practical=",pmprcs,"%") print("Percentage of marks obtained in maths=",pmcs,"%") if pmcs>90: print("You scored A1 grade") elif pmcs>80 and pmcs<90: print("You scored A2 grade") elif pmcs>70 and pmcs<80: print("You scored B1 grade") elif pmcs>60 and pmcs<70: print("You scored B2 grade") elif pmcs>50 and pmcs<60: print("You scored C1 grade") elif pmcs>40 and pmcs<50: print("You scored C2 grade") elif pmcs>33 and pmcs<40: print("You scored D grade") elif pmcs<33: print("You scored E grade") #MATHS FOR CLASS 11 PCMB def mathsbio(): mpt1bio=int(input("Enter the marks you scored in Periodic Test 1 of Mathematics :")) mpt2bio=int(input("Enter the marks you scored in Periodic Test 2 Of Mathematics:")) mhybio=int(input("Enter the marks you scored in Half Yearly Examination of Mathematics:")) mssebio=int(input("Enter the marks you scored in Session Ending Examination of Mathematics")) mprbio=int(input("Enter the marks you scored in practicals of Mathematics")) totmarksbiomth=mpt1bio+mpt2bio+mhybio+mssebio totmarksbiompr=mprbio pmthbio=totmarksbiomth/160*100 pmprbio=totmarksbiompr/20*100 totmarksbiom=totmarksbiomth+totmarksbiompr pmbio=totmarksbiom/180*100 print("Total marks in maths theory=160") print("Total Marks obtained in maths",totmarksbiom) print("Marks obtained in maths theory=",totmarksbiomth) print("Marks obtained in maths practical=",totmarksbiompr) print("Percentage of marks obtained in maths theory=",pmthbio,"%") print("Percentage of marks obtained in maths practical=",pmprbio,"%") print("Percentage of marks obtained in maths=",pmbio,"%") if pmbio>90: print("You scored A1 grade") elif pmbio>80 and pmbio<90: print("You scored A2 grade") elif pmbio>70 and pmbio<80: print("You scored B1 grade") elif pmbio>60 and pmbio<70: print("You scored B2 grade") elif pmbio>50 and pmbio<60: print("You scored C1 grade") elif pmbio>40 and pmbio<50: print("You scored C2 grade") elif pmbio>33 and pmbio<40: print("You scored D grade") elif pmbio<33: print("You scored E grade") #HINDI #HINDI FOR PRIMARY def hindipri(): hpt1pri=int(input("Enter the marks you scored in Periodic Test 1 of Hindi")) hpt2pri=int(input("Enter the marks you scored in Periodic Test 2 of Hindi")) hhypri=int(input("Enter the marks you scored in Half Yearly Examination of Hindi")) hssepri=int(input("Enter the marks you scored in Session Ending Examination of Hindi")) hprpri=int(input("Enter the marks you scored in Internals of Hindi")) totmarksprihth=hpt1pri+hpt2pri+hhypri+hssepri totmarksprihpr=hprpri phthpri=totmarksprihth/160*100 phprpri=totmarksprihpr/20*100 totmarksprih=totmarksprihth+totmarksprihpr phpri=totmarksprih/180*100 print("Total marks in Hindi theory=160") print("Total Marks obtained in Hindi",totmarksprih) print("Marks obtained in Hindi theory=",totmarksprihth) print("Marks obtained in hindi practical=",totmarksprihpr) print("Percentage of marks obtained in hindi theory=",phthpri,"%") print("Percentage of marks obtained in hindi practical=",phprpri,"%") print("Percentage of marks obtained in hindi=",phpri,"%") if phpri>90: print("You scored A1 grade") elif phpri>80 and phpri<90: print("You scored A2 grade") elif phpri>70 and phpri<80: print("You scored B1 grade") elif phpri>60 and phpri<70: print("You scored B2 grade") elif phpri>50 and phpri<60: print("You scored C1 grade") elif phpri>40 and phpri<50: print("You scored C2 grade") elif phpri>33 and phpri<40: print("You scored D grade") elif phpri<33: print("You scored E grade") #HINDI FOR CLASS 6 TO 8 def hindisec(): hpt1sec=int(input("Enter the marks you scored in Periodic Test 1 of Hindi")) hpt2sec=int(input("Enter the marks you scored in Periodic Test 2 of Hindi")) hhysec=int(input("Enter the marks scored in Half Yearly of Hindi")) hssesec=int(input("Enter the marks scored in Session Ending Examination of Hindi")) hprsec=int(input("Enter the marks scored in Internals of Hindi")) totmarkssechth=hpt1sec+hpt2sec+hhysec+hssesec totmarkssechpr=hprsec phthsec=totmarkssechth/160*100 phprsec=totmarkssechpr/20*100 totmarkssech=totmarkssechth+totmarkssechpr phsec=totmarkssech/180*100 print("Total marks in Hindi theory=160") print("Total Marks obtained in Hindi",totmarkssech) print("Marks obtained in Hindi theory=",totmarkssechth) print("Marks obtained in hindi practical=",totmarkssechpr) print("Percentage of marks obtained in hindi theory=",phthsec,"%") print("Percentage of marks obtained in hindi practical=",phprsec,"%") print("Percentage of marks obtained in hindi=",phsec,"%") if phsec>90: print("You scored A1 grade") elif phsec>80 and phsec<90: print("You scored A2 grade") elif phsec>70 and phsec<80: print("You scored B1 grade") elif phsec>60 and phsec<70: print("You scored B2 grade") elif phsec>50 and phsec<60: print("You scored C1 grade") elif phsec>40 and phsec<50: print("You scored C2 grade") elif phsec>33 and phsec<40: print("You scored D grade") elif phsec<33: print("You scored E grade") #HINDI FOR CLASS 9 def ninehindi(): hpt1h9=int(input("Enter the marks you scored in Periodic Test 1 of Hindi")) hpt2h9=int(input("Enter the marks you scored in Periodic Test 2 of Hindi")) hhyh9=int(input("Enter the marks scored in Half Yearly of Hindi")) hsseh9=int(input("Enter the marks scored in Session Ending Examination of Hindi")) hprh9=int(input("Enter the marks scored in Internals of Hindi")) totmarksh9hth=hpt1h9+hpt2h9+hhyh9+hsseh9 totmarksh9hpr=hprh9 phthh9=totmarksh9hth/160*100 phprh9=totmarksh9hpr/20*100 totmarksh9h=totmarksh9hth+totmarksh9hpr phh9=totmarksh9h/180*100 print("Total marks in Hindi theory=160") print("Total Marks obtained in Hindi",totmarksh9h) print("Marks obtained in Hindi theory=",totmarksh9hth) print("Marks obtained in hindi practical=",totmarksh9hpr) print("Percentage of marks obtained in hindi theory=",phthh9,"%") print("Percentage of marks obtained in hindi practical=",phprh9,"%") print("Percentage of marks obtained in hindi=",phh9,"%") if phh9>90: print("You scored A1 grade") elif phh9>80 and phh9<90: print("You scored A2 grade") elif phh9>70 and phh9<80: print("You scored B1 grade") elif phh9>60 and phh9<70: print("You scored B2 grade") elif phh9>50 and phh9<60: print("You scored C1 grade") elif phh9>40 and phh9<50: print("You scored C2 grade") elif phh9>33 and phh9<40: print("You scored D grade") elif phh9<33: print("You scored E grade") #HINDI FOR PCB WITH HINDI def pcbhindi(): hpt1h=int(input("Enter the marks you scored in Periodic Test 1 of Hindi :")) hpt2h=int(input("Enter the marks you scored in Periodic Test 2 Of Hindi:")) hhyh=int(input("Enter the marks you scored in Half Yearly Examination of Hindi:")) hsseh=int(input("Enter the marks you scored in Session Ending Examination of Hindi")) hprh=int(input("Enter the marks you scored in practicals of Hindi")) totmarkshhth=hpt1h+hpt2h+hhyh+hsseh totmarkshhpr=hprh phthh=totmarkshhth/160*100 phprh=totmarkshhpr/20*100 totmarkshh=totmarkshhth+totmarkshhpr phh=totmarkshh/180*100 print("Total marks in Hindi theory=160") print("Total Marks obtained in Hindi",totmarkshh) print("Marks obtained in Hindi theory=",totmarkshhth) print("Marks obtained in hindi practical=",totmarkshhpr) print("Percentage of marks obtained in hindi theory=",phthh,"%") print("Percentage of marks obtained in hindi practical=",phprh,"%") print("Percentage of marks obtained in hindi=",phh,"%") if phh>90: print("You scored A1 grade") elif phh>80 and phh<90: print("You scored A2 grade") elif phh>70 and phh<80: print("You scored B1 grade") elif phh>60 and phh<70: print("You scored B2 grade") elif phh>50 and phh<60: print("You scored C1 grade") elif phh>40 and phh<50: print("You scored C2 grade") elif phh>33 and phh<40: print("You scored D grade") elif phh<33: print("You scored E grade") #HINDI FOR HUMANITIES def hindihum(): hpt1hum=int(input("Enter the marks you scored in Periodic Test 1 of Hindi:")) hpt2hum=int(input("Enter the marks you scored in Periodic Test 2 Of Hindi:")) hhyhum=int(input("Enter the marks you scored in Half Yearly Examination of Hindi:")) hssehum=int(input("Enter the marks you scored in Session Ending Examination of Hindi")) hprhum=int(input("Enter the marks you scored in internals of Hindi")) totmarkshumhth=hpt1hum+hpt2hum+hhyhum+hssehum totmarkshumhpr=hprhum phthhum=totmarkshumhth/160*100 phprhum=totmarkshumhpr/20*100 totmarkshumh=totmarkshumhth+totmarkshumhpr phhum=totmarkshumh/180*100 print("Total marks in Hindi theory=160") print("Total Marks obtained in Hindi",totmarkshumh) print("Marks obtained in Hindi theory=",totmarkshumhth) print("Marks obtained in hindi practical=",totmarkshumhpr) print("Percentage of marks obtained in hindi theory=",phthhum,"%") print("Percentage of marks obtained in hindi practical=",phprhum,"%") print("Percentage of marks obtained in hindi=",phhum,"%") if phhum>90: print("You scored A1 grade") elif phhum>80 and phhum<90: print("You scored A2 grade") elif phhum>70 and phhum<80: print("You scored B1 grade") elif phhum>60 and phhum<70: print("You scored B2 grade") elif phhum>50 and phhum<60: print("You scored C1 grade") elif phhum>40 and phhum<50: print("You scored C2 grade") elif phhum>33 and phhum<40: print("You scored D grade") elif phhum<33: print("You scored E grade") #ENGLISH #ENGLISH FOR PRIMARY SECTION def engpri(): ept1pri=int(input("Enter the marks you scored in Periodic Test 1 of English")) ept2pri=int(input("Enter the marks you scored in Periodic Test 2 of English")) ehypri=int(input("Enter the marks you scored in Half Yearly Examination of English")) essepri=int(input("Enter the marks you scored in Session Ending Examination of English")) eprpri=int(input("Enter the marks you scored in Session Ending Examination of English")) totmarksprieth=ept1pri+ept2pri+ehypri+essepri totmarkspriepr=eprpri pethpri=totmarksprieth/160*100 peprpri=totmarkspriepr/20*100 totmarksprie=totmarksprieth+totmarkspriepr pepri=totmarksprie/180*100 print("Total marks in English theory=160") print("Total Marks obtained in English",totmarksprie) print("Marks obtained in English theory=",totmarksprieth) print("Marks obtained in English practical=",totmarkspriepr) print("Percentage of marks obtained in English theory=",pethpri,"%") print("Percentage of marks obtained in English practical=",peprpri,"%") print("Percentage of marks obtained in English=",pepri,"%") if pepri>90: print("You scored A1 grade") elif pepri>80 and pepri<90: print("You scored A2 grade") elif pepri>70 and pepri<80: print("You scored B1 grade") elif pepri>60 and pepri<70: print("You scored B2 grade") elif pepri>50 and pepri<60: print("You scored C1 grade") elif pepri>40 and pepri<50: print("You scored C2 grade") elif pepri>33 and pepri<40: print("You scored D grade") elif pepri<33: print("You scored E grade") #ENGLISH FOR CLASS 6 TO 8 def engsec(): ept1sec=int(input("Enter the marks you scored in Periodic Test 1 of English")) ept2sec=int(input("Enter the marks you scored in Periodic Test 2 of English")) ehysec=int(input("Enter the marks scored in Half Yearly of English")) essesec=int(input("Enter the marks scored in Session Ending Examination of English")) eprsec=int(input("Enter the marks scored in Internals of English")) totmarksseceth=ept1sec+ept2sec+ehysec+essesec totmarkssecepr=eprsec pethsec=totmarksseceth/160*100 peprsec=totmarkssecepr/20*100 totmarkssece=totmarksseceth+totmarkssecepr pesec=totmarkssece/180*100 print("Total marks in English theory=160") print("Total Marks obtained in English",totmarkssece) print("Marks obtained in English theory=",totmarksseceth) print("Marks obtained in English practical=",totmarkssecepr) print("Percentage of marks obtained in English theory=",pethsec,"%") print("Percentage of marks obtained in English practical=",peprsec,"%") print("Percentage of marks obtained in English=",pesec,"%") if pesec>90: print("You scored A1 grade") elif pesec>80 and pesec<90: print("You scored A2 grade") elif pesec>70 and pesec<80: print("You scored B1 grade") elif pesec>60 and pesec<70: print("You scored B2 grade") elif pesec>50 and pesec<60: print("You scored C1 grade") elif pesec>40 and pesec<50: print("You scored C2 grade") elif pesec>33 and pesec<40: print("You scored D grade") elif pesec<33: print("You scored E grade") #ENGLISH FOR CLASS 9 HINDI def engnineh(): ept1h9=int(input("Enter the marks you scored in Periodic Test 1 of English")) ept2h9=int(input("Enter the marks you scored in Periodic Test 2 of English")) ehyh9=int(input("Enter the marks scored in Half Yearly of English")) esseh9=int(input("Enter the marks scored in Session Ending Examination of English")) eprh9=int(input("Enter the marks scored in Internals of English")) totmarksh9eth=ept1h9+ept2h9+ehyh9+esseh9 totmarksh9epr=eprh9 pethh9=totmarksh9eth/160*100 peprh9=totmarksh9epr/20*100 totmarksh9e=totmarksh9eth+totmarksh9epr peh9=totmarksh9e/180*100 print("Total marks in English theory=160") print("Total Marks obtained in English",totmarksh9e) print("Marks obtained in English theory=",totmarksh9eth) print("Marks obtained in English practical=",totmarksh9epr) print("Percentage of marks obtained in English theory=",pethh9,"%") print("Percentage of marks obtained in English practical=",peprh9,"%") print("Percentage of marks obtained in English=",peh9,"%") if peh9>90: print("You scored A1 grade") elif peh9>80 and peh9<90: print("You scored A2 grade") elif peh9>70 and peh9<80: print("You scored B1 grade") elif peh9>60 and peh9<70: print("You scored B2 grade") elif peh9>50 and peh9<60: print("You scored C1 grade") elif peh9>40 and peh9<50: print("You scored C2 grade") elif peh9>33 and peh9<40: print("You scored D grade") elif peh9<33: print("You scored E grade") #ENGLISH FOR CLASS 9 SANSKRIT def engnines(): ept1s9=int(input("Enter the marks you scored in Periodic Test 1 of English")) ept2s9=int(input("Enter the marks you scored in Periodic Test 2 of English")) ehys9=int(input("Enter the marks scored in Half Yearly of English")) esses9=int(input("Enter the marks scored in Session Ending Examination of English")) eprs9=int(input("Enter the marks scored in Internals of English")) totmarkss9eth=ept1s9+ept2s9+ehys9+esses9 totmarkss9epr=eprs9 peths9=totmarkss9eth/160*100 peprs9=totmarkss9epr/20*100 totmarkss9e=totmarkss9eth+totmarkss9epr pes9=totmarkss9e/180*100 print("Total marks in English theory=160") print("Total Marks obtained in English",totmarkss9e) print("Marks obtained in English theory=",totmarkss9eth) print("Marks obtained in English practical=",totmarkss9epr) print("Percentage of marks obtained in English theory=",peths9,"%") print("Percentage of marks obtained in English practical=",peprs9,"%") print("Percentage of marks obtained in English=",pes9,"%") if pes9>90: print("You scored A1 grade") elif pes9>80 and pes9<90: print("You scored A2 grade") elif pes9>70 and pes9<80: print("You scored B1 grade") elif pes9>60 and pes9<70: print("You scored B2 grade") elif pes9>50 and pes9<60: print("You scored C1 grade") elif pes9>40 and pes9<50: print("You scored C2 grade") elif pes9>33 and pes9<40: print("You scored D grade") elif pes9<33: print("You scored E grade") #ENGLISH FOR PCM WITH CS def engcs(): ept1cs=int(input("Enter the marks you scored in Periodic Test 1 of English :")) ept2cs=int(input("Enter the marks you scored in Periodic Test 2 of English:")) ehycs=int(input("Enter the marks you scored in Half Yearly Examination of English:")) essecs=int(input("Enter the marks you scored in Session Ending Examination of English")) eprcs=int(input("Enter the marks you scored in practicals of English")) totmarkscseth=ept1cs+ept2cs+ehycs+essecs totmarkscsepr=eprcs pethcs=totmarkscseth/160*100 peprcs=totmarkscsepr/20*100 totmarkscse=totmarkscseth+totmarkscsepr pecs=totmarkscse/180*100 print("Total marks in English theory=160") print("Total Marks obtained in English",totmarkscse) print("Marks obtained in English theory=",totmarkscseth) print("Marks obtained in English practical=",totmarkscsepr) print("Percentage of marks obtained in English theory=",pethcs,"%") print("Percentage of marks obtained in English practical=",peprcs,"%") print("Percentage of marks obtained in English=",pecs,"%") if pecs>90: print("You scored A1 grade") elif pecs>80 and pecs<90: print("You scored A2 grade") elif pecs>70 and pecs<80: print("You scored B1 grade") elif pecs>60 and pecs<70: print("You scored B2 grade") elif pecs>50 and pecs<60: print("You scored C1 grade") elif pecs>40 and pecs<50: print("You scored C2 grade") elif pecs>33 and pecs<40: print("You scored D grade") elif pecs<33: print("You scored E grade") #ENGLISH FOR PCMB def engpcmb(): ept1bio=int(input("Enter the marks you scored in Periodic Test 1 of English :")) ept2bio=int(input("Enter the marks you scored in Periodic Test 2 of English:")) ehybio=int(input("Enter the marks you scored in Half Yearly Examination of English:")) essebio=int(input("Enter the marks you scored in Session Ending Examination of English")) eprbio=int(input("Enter the marks you scored in practicals of English")) totmarksbioeth=ept1bio+ept2bio+ehybio+essebio totmarksbioepr=eprbio pethbio=totmarksbioeth/160*100 peprbio=totmarksbioepr/20*100 totmarksbioe=totmarksbioeth+totmarksbioepr pebio=totmarksbioe/180*100 print("Total marks in English theory=160") print("Total Marks obtained in English",totmarksbioe) print("Marks obtained in English theory=",totmarksbioeth) print("Marks obtained in English practical=",totmarksbioepr) print("Percentage of marks obtained in English theory=",pethbio,"%") print("Percentage of marks obtained in English practical=",peprbio,"%") print("Percentage of marks obtained in English=",pebio,"%") if pebio>90: print("You scored A1 grade") elif pebio>80 and pebio<90: print("You scored A2 grade") elif pebio>70 and pebio<80: print("You scored B1 grade") elif pebio>60 and pebio<70: print("You scored B2 grade") elif pebio>50 and pebio<60: print("You scored C1 grade") elif pebio>40 and pebio<50: print("You scored C2 grade") elif pebio>33 and pebio<40: print("You scored D grade") elif pebio<33: print("You scored E grade") #ENGLISH FOR PCB WITH HINDI def engpcb(): ept1h=int(input("Enter the marks you scored in Periodic Test 1 of English :")) ept2h=int(input("Enter the marks you scored in Periodic Test 2 of English:")) ehyh=int(input("Enter the marks you scored in Half Yearly Examination of English:")) esseh=int(input("Enter the marks you scored in Session Ending Examination of English")) eprh=int(input("Enter the marks you scored in practicals of English")) totmarksheth=ept1h+ept2h+ehyh+esseh totmarkshepr=eprh pethh=totmarksheth/160*100 peprh=totmarkshepr/20*100 totmarkshe=totmarksheth+totmarkshepr peh=totmarkshe/180*100 print("Total marks in English theory=160") print("Total Marks obtained in English",totmarkshe) print("Marks obtained in English theory=",totmarksheth) print("Marks obtained in English practical=",totmarkshepr) print("Percentage of marks obtained in English theory=",pethh,"%") print("Percentage of marks obtained in English practical=",peprh,"%") print("Percentage of marks obtained in English=",peh,"%") if peh>90: print("You scored A1 grade") elif peh>80 and peh<90: print("You scored A2 grade") elif peh>70 and peh<80: print("You scored B1 grade") elif peh>60 and peh<70: print("You scored B2 grade") elif peh>50 and peh<60: print("You scored C1 grade") elif peh>40 and peh<50: print("You scored C2 grade") elif peh>33 and peh<40: print("You scored D grade") elif peh<33: print("You scored E grade") #ENGLISH FOR HUMANITIES def enghum(): ept1hum=int(input("Enter the marks you scored in Periodic Test 1 of English:")) ept2hum=int(input("Enter the marks you scored in Periodic Test 2 of English:")) ehyhum=int(input("Enter the marks you scored in Half Yearly Examination of English:")) essehum=int(input("Enter the marks you scored in Session Ending Examination of English")) eprhum=int(input("Enter the marks you scored in internals of English")) totmarkshumeth=ept1hum+ept2hum+ehyhum+essehum totmarkshumepr=eprhum pethhum=totmarkshumeth/160*100 peprhum=totmarkshumepr/20*100 totmarkshume=totmarkshumeth+totmarkshumepr pehum=totmarkshume/180*100 print("Total marks in English theory=160") print("Total Marks obtained in English",totmarkshume) print("Marks obtained in English theory=",pethhum) print("Marks obtained in English practical=",totmarkshumepr) print("Percentage of marks obtained in English theory=",pethhum,"%") print("Percentage of marks obtained in English practical=",peprhum,"%") print("Percentage of marks obtained in English=",pehum,"%") if pehum>90: print("You scored A1 grade") elif pehum>80 and pehum<90: print("You scored A2 grade") elif pehum>70 and pehum<80: print("You scored B1 grade") elif pehum>60 and pehum<70: print("You scored B2 grade") elif pehum>50 and pehum<60: print("You scored C1 grade") elif pehum>40 and pehum<50: print("You scored C2 grade") elif pehum>33 and pehum<40: print("You scored D grade") elif pehum<33: print("You scored E grade") #EVS #EVS FOR PRIMARY def prievs(): evspt1pri=int(input("Enter the marks you scored in Periodic Test 1 of Environmental Science")) evspt2pri=int(input("Enter the marks you scored in Periodic Test 2 of Environmental Science")) evshypri=int(input("Enter the marks you scored in Half Yearly Examination of Environmental Science")) evsssepri=int(input("Enter the marks you scored in Sessipon Ending Examination of Environmental Science")) evsprpri=int(input("Enter the marks you scored in Sessipon Ending Examination of Environmental Science")) totmarksprievsth=evspt1pri+evspt2pri+evshypri+evsssepri totmarksprievspr=evsprpri pevsthpri=totmarksprievsth/160*100 pevsprpri=totmarksprievspr/20*100 totmarksprievs=totmarksprievsth+totmarksprievspr pevspri=totmarksprievs/180*100 print("Total marks in Environmental Science theory=160") print("Total Marks obtained in Environmental Science",totmarksprievs) print("Marks obtained in Environmental Science theory=",totmarksprievsth) print("Marks obtained in Environmental Science practical=",totmarksprievspr) print("Percentage of marks obtained in Environmental Science theory=",pevsthpri,"%") print("Percentage of marks obtained in Environmental Science practical=",pevsprpri,"%") print("Percentage of marks obtained in Environmental Science=",pevspri,"%") if pevspri>90: print("You scored A1 grade") elif pevspri>80 and pevspri<90: print("You scored A2 grade") elif pevspri>70 and pevspri<80: print("You scored B1 grade") elif pevspri>60 and pevspri<70: print("You scored B2 grade") elif pevspri>50 and pevspri<60: print("You scored C1 grade") elif pevspri>40 and pevspri<50: print("You scored C2 grade") elif pevspri>33 and pevspri<40: print("You scored D grade") elif pevspri<33: print("You scored E grade") #SCIENCE #SCIENCE CLASS 6 TO 8 def scisec(): scpt1sec=int(input("Enter the marks you scored in Periodic Test 1 of Science")) scpt2sec=int(input("Enter the marks you scored in Periodic Test 2 of Science")) schysec=int(input("Enter the marks scored in Half Yearly of Science")) scssesec=int(input("Enter the marks scored in Session Ending Examination of Science")) scprsec=int(input("Enter the marks scored in Internals of Science")) totmarkssecscth=scpt1sec+scpt2sec+schysec+scssesec totmarkssecscpr=scprsec pscthsec=totmarkssecscth/160*100 pscprsec=totmarkssecscpr/20*100 totmarkssecsc=totmarkssecscth+totmarkssecscpr pscsec=totmarkssecsc/180*100 print("Total marks in Science theory=160") print("Total Marks obtained in Science",totmarkssecsc) print("Marks obtained in Science theory=",totmarkssecscth) print("Marks obtained in Science practical=",totmarkssecscpr) print("Percentage of marks obtained in Science theory=",pscthsec,"%") print("Percentage of marks obtained in Science practical=",pscprsec,"%") print("Percentage of marks obtained in Science=",pscsec,"%") if pscsec>90: print("You scored A1 grade") elif pscsec>80 and pscsec<90: print("You scored A2 grade") elif pscsec>70 and pscsec<80: print("You scored B1 grade") elif pscsec>60 and pscsec<70: print("You scored B2 grade") elif pscsec>50 and pscsec<60: print("You scored C1 grade") elif pscsec>40 and pscsec<50: print("You scored C2 grade") elif pscsec>33 and pscsec<40: print("You scored D grade") elif pscsec<33: print("You scored E grade") #SCIENCE CLASS 9 HINDI def scinhindi(): scpt1h9=int(input("Enter the marks you scored in Periodic Test 1 of Science")) scpt2h9=int(input("Enter the marks you scored in Periodic Test 2 of Science")) schyh9=int(input("Enter the marks scored in Half Yearly of Science")) scsseh9=int(input("Enter the marks scored in Session Ending Examination of Science")) scprh9=int(input("Enter the marks scored in Internals of Science")) totmarksh9scth=scpt1h9+scpt2h9+schyh9+scsseh9 totmarksh9scpr=scprh9 pscthh9=totmarksh9scth/160*100 pscprh9=totmarksh9scpr/20*100 totmarksh9sc=totmarksh9scth+totmarksh9scpr psch9=totmarksh9sc/180*100 print("Total marks in Science theory=160") print("Total Marks obtained in Science",totmarksh9sc) print("Marks obtained in Science theory=",totmarksh9scth) print("Marks obtained in Science practical=",totmarksh9scpr) print("Percentage of marks obtained in Science theory=",pscthh9,"%") print("Percentage of marks obtained in Science practical=",pscprh9,"%") print("Percentage of marks obtained in Science=",psch9,"%") if psch9>90: print("You scored A1 grade") elif psch9>80 and psch9<90: print("You scored A2 grade") elif psch9>70 and psch9<80: print("You scored B1 grade") elif psch9>60 and psch9<70: print("You scored B2 grade") elif psch9>50 and psch9<60: print("You scored C1 grade") elif psch9>40 and psch9<50: print("You scored C2 grade") elif psch9>33 and psch9<40: print("You scored D grade") elif psch9<33: print("You scored E grade") #SCIENCE CLASS 9 SANSKRIT def scinskt(): scpt1s9=int(input("Enter the marks you scored in Periodic Test 1 of Science")) scpt2s9=int(input("Enter the marks you scored in Periodic Test 2 of Science")) schys9=int(input("Enter the marks scored in Half Yearly of Science")) scsses9=int(input("Enter the marks scored in Session Ending Examination of Science")) scprs9=int(input("Enter the marks scored in Internals of Science")) totmarkss9scth=scpt1s9+scpt2s9+schys9+scsses9 totmarkss9scpr=scprs9 pscths9=totmarkss9scth/160*100 pscprs9=totmarkss9scpr/20*100 totmarkss9sc=totmarkss9scth+totmarkss9scpr pscs9=totmarkss9sc/180*100 print("Total marks in Science theory=160") print("Total Marks obtained in Science",totmarkss9sc) print("Marks obtained in Science theory=",totmarkss9scth) print("Marks obtained in Science practical=",totmarkss9scpr) print("Percentage of marks obtained in Science theory=",pscths9,"%") print("Percentage of marks obtained in Science practical=",pscprs9,"%") print("Percentage of marks obtained in Science=",pscs9,"%") if pscs9>90: print("You scored A1 grade") elif pscs9>80 and pscs9<90: print("You scored A2 grade") elif pscs9>70 and pscs9<80: print("You scored B1 grade") elif pscs9>60 and pscs9<70: print("You scored B2 grade") elif pscs9>50 and pscs9<60: print("You scored C1 grade") elif pscs9>40 and pscs9<50: print("You scored C2 grade") elif pscs9>33 and pscs9<40: print("You scored D grade") elif pscs9<33: print("You scored E grade") #SOCIAL SCIENCE #SOCIAL SCIENCE FOR CLASS 6 to 8 def soscsec(): soscpt1sec=int(input("Enter the marks you scored in Periodic Test 1 of Social Science")) soscpt2sec=int(input("Enter the marks you scored in Periodic Test 2 of Social Science")) soschysec=int(input("Enter the marks scored in Half Yearly of Social Science")) soscssesec=int(input("Enter the marks scored in Session Ending Examination of Social Science")) soscprsec=int(input("Enter the marks scored in Internals of Social Science")) totmarkssecsoscth=soscpt1sec+soscpt2sec+soschysec+soscssesec totmarkssecsoscpr=soscprsec psoscthsec=totmarkssecsoscth/160*100 psoscprsec=totmarkssecsoscpr/20*100 totmarkssecsosc=totmarkssecsoscth+totmarkssecsoscpr psoscsec=totmarkssecsosc/180*100 print("Total marks in Social Science theory=160") print("Total Marks obtained in Social Science",totmarkssecsosc) print("Marks obtained in Social Science theory=",totmarkssecsoscth) print("Marks obtained in Social Science practical=",totmarkssecsoscpr) print("Percentage of marks obtained in Social Science theory=",psoscthsec,"%") print("Percentage of marks obtained in Social Science practical=",psoscprsec,"%") print("Percentage of marks obtained in Social Science=",psoscsec,"%") if psoscsec>90: print("You scored A1 grade") elif psoscsec>80 and psoscsec<90: print("You scored A2 grade") elif psoscsec>70 and psoscsec<80: print("You scored B1 grade") elif psoscsec>60 and psoscsec<70: print("You scored B2 grade") elif psoscsec>50 and psoscsec<60: print("You scored C1 grade") elif psoscsec>40 and psoscsec<50: print("You scored C2 grade") elif psoscsec>33 and psoscsec<40: print("You scored D grade") elif psoscsec<33: print("You scored E grade") #SOCIAL SCIENCE FOR CLASS 9 HINDI def soscnhindi(): soscpt1h9=int(input("Enter the marks you scored in Periodic Test 1 of Social Science")) soscpt2h9=int(input("Enter the marks you scored in Periodic Test 2 of Social Science")) soschyh9=int(input("Enter the marks scored in Half Yearly of Social Science")) soscsseh9=int(input("Enter the marks scored in Session Ending Examination of Social Science")) soscprh9=int(input("Enter the marks scored in Internals of Social Science")) totmarksh9soscth=soscpt1h9+soscpt2h9+soschyh9+soscsseh9 totmarksh9soscpr=soscprh9 psoscthh9=totmarksh9soscth/160*100 psoscprh9=totmarksh9soscpr/20*100 totmarksh9sosc=totmarksh9soscth+totmarksh9soscpr psosch9=totmarksh9sosc/180*100 print("Total marks in Social Science theory=160") print("Total Marks obtained in Social Science",totmarksh9sosc) print("Marks obtained in Social Science theory=",totmarksh9soscth) print("Marks obtained in Social Science practical=",totmarksh9soscpr) print("Percentage of marks obtained in Social Science theory=",psoscthh9,"%") print("Percentage of marks obtained in Social Science practical=",psoscprh9,"%") print("Percentage of marks obtained in Social Science=",psosch9,"%") if psosch9>90: print("You scored A1 grade") elif psosch9>80 and psosch9<90: print("You scored A2 grade") elif psosch9>70 and psosch9<80: print("You scored B1 grade") elif psosch9>60 and psosch9<70: print("You scored B2 grade") elif psosch9>50 and psosch9<60: print("You scored C1 grade") elif psosch9>40 and psosch9<50: print("You scored C2 grade") elif psosch9>33 and psosch9<40: print("You scored D grade") elif psosch9<33: print("You scored E grade") #SOCIAL SCIENCE FOR CLASS 9 SANSKRIT def soscnskt(): soscpt1s9=int(input("Enter the marks you scored in Periodic Test 1 of Social Science")) soscpt2s9=int(input("Enter the marks you scored in Periodic Test 2 of Social Science")) soschys9=int(input("Enter the marks scored in Half Yearly of Social Science")) soscsses9=int(input("Enter the marks scored in Session Ending Examination of Social Science")) soscprs9=int(input("Enter the marks scored in Internals of Social Science")) totmarkss9soscth=soscpt1s9+soscpt2s9+soschys9+soscsses9 totmarkss9soscpr=soscprs9 psoscths9=totmarkss9soscth/160*100 psoscprs9=totmarkss9soscpr/20*100 totmarkss9sosc=totmarkss9soscth+totmarkss9soscpr psoscs9=totmarkss9sosc/180*100 print("Total marks in Social Science theory=160") print("Total Marks obtained in Social Science",totmarkss9sosc) print("Marks obtained in Social Science theory=",totmarkss9soscth) print("Marks obtained in Social Science practical=",totmarkss9soscpr) print("Percentage of marks obtained in Social Science theory=",psoscths9,"%") print("Percentage of marks obtained in Social Science practical=",psoscprs9,"%") print("Percentage of marks obtained in Social Science=",psoscs9,"%") if psoscs9>90: print("You scored A1 grade") elif psoscs9>80 and psoscs9<90: print("You scored A2 grade") elif psoscs9>70 and psoscs9<80: print("You scored B1 grade") elif psoscs9>60 and psoscs9<70: print("You scored B2 grade") elif psoscs9>50 and psoscs9<60: print("You scored C1 grade") elif psoscs9>40 and psoscs9<50: print("You scored C2 grade") elif psoscs9>33 and psoscs9<40: print("You scored D grade") elif psoscs9<33: print("You scored E grade") #SANSKRIT #SANSKRIT FOR CLASS 6-8 def sktsec(): sktpt1sec=int(input("Enter the marks you scored in Periodic Test 1 of Sanksrit")) sktpt2sec=int(input("Enter the marks you scored in Periodic Test 2 of Sanksrit")) skthysec=int(input("Enter the marks scored in Half Yearly of Sanksrit")) sktssesec=int(input("Enter the marks scored in Session Ending Examination of Sanksrit")) sktprsec=int(input("Enter the marks scored in Internals of Sanksrit")) totmarkssecsktth=sktpt1sec+sktpt2sec+skthysec+sktssesec totmarkssecsktpr=sktprsec psktthsec=totmarkssecsktth/160*100 psktprsec=totmarkssecsktpr/20*100 totmarkssecskt=totmarkssecsktth+totmarkssecsktpr psktsec=totmarkssecskt/180*100 print("Total marks in Sanksrit theory=160") print("Total Marks obtained in Sanksrit",totmarkssecskt) print("Marks obtained in Sanksrit theory=",totmarkssecsktth) print("Marks obtained in Sanksrit practical=",totmarkssecsktpr) print("Percentage of marks obtained in Sanksrit theory=",psktthsec,"%") print("Percentage of marks obtained in Sanksrit practical=",psktprsec,"%") print("Percentage of marks obtained in Sanksrit=",psktsec,"%") if psktsec>90: print("You scored A1 grade") elif psktsec>80 and psktsec<90: print("You scored A2 grade") elif psktsec>70 and psktsec<80: print("You scored B1 grade") elif psktsec>60 and psktsec<70: print("You scored B2 grade") elif psktsec>50 and psktsec<60: print("You scored C1 grade") elif psktsec>40 and psktsec<50: print("You scored C2 grade") elif psktsec>33 and psktsec<40: print("You scored D grade") elif psktsec<33: print("You scored E grade") #SANSKRIT FOR CLASS 9 def sktnine(): sktpt1s9=int(input("Enter the marks you scored in Periodic Test 1 of Sanskrit")) sktpt2s9=int(input("Enter the marks you scored in Periodic Test 2 of Sanskrit")) skthys9=int(input("Enter the marks scored in Half Yearly of Sanskrit")) sktsses9=int(input("Enter the marks scored in Session Ending Examination of Sanskrit")) sktprs9=int(input("Enter the marks scored in Internals of Sanskrit")) totmarkss9sktth=sktpt1s9+sktpt2s9+skthys9+sktsses9 totmarkss9sktpr=sktprs9 psktths9=totmarkss9sktth/160*100 psktprs9=totmarkss9sktpr/20*100 totmarkss9skt=totmarkss9sktth+totmarkss9sktpr pskts9=totmarkss9skt/180*100 print("Total marks in Sanksrit theory=160") print("Total Marks obtained in Sanksrit",totmarkssecskt) print("Marks obtained in Sanksrit theory=",totmarkss9sktth) print("Marks obtained in Sanksrit practical=",totmarkss9sktpr) print("Percentage of marks obtained in Sanksrit theory=",psktths9,"%") print("Percentage of marks obtained in Sanksrit practical=",psktprs9,"%") print("Percentage of marks obtained in Sanksrit=",pskts9,"%") if pskts9>90: print("You scored A1 grade") elif pskts9>80 and pskts9<90: print("You scored A2 grade") elif pskts9>70 and pskts9<80: print("You scored B1 grade") elif pskts9>60 and pskts9<70: print("You scored B2 grade") elif pskts9>50 and pskts9<60: print("You scored C1 grade") elif pskts9>40 and pskts9<50: print("You scored C2 grade") elif pskts9>33 and pskts9<40: print("You scored D grade") elif pskts9<33: print("You scored E grade") #COMPUTER SCIENCE #CALCULATION OF COMPUTER SCIENCE MARKS FOR CLASS 11 def cse(): cspt1cs=int(input("Enter the marks you scored in Periodic Test 1 of Computer Science :")) cspt2cs=int(input("Enter the marks you scored in Periodic Test 2 Of Computer Science :")) cshycs=int(input("Enter the marks you scored in Half Yearly Examination of Computer Science:")) cssecs=int(input("Enter the marks you scored in Session Ending Examination of Chemistry")) csprcs=int(input("Enter the marks you scored in practicals of Computer Science")) totmarkscsth=cspt1cs+cspt2cs+cshycs+cssecs totmarkscspr=csprcs totmarkscs=totmarkscsth+totmarkscspr pcsth=totmarkscsth/220*100 pcspr=totmarkscspr/30*100 pcs=totmarkscs/250*100 print("Total marks in Computer Science theory=220") print("Total Marks obtained in Computer Science",totmarkscs) print("Marks obtained in Computer Science theory=",totmarkscsth) print("Marks obtained in Computer Science practical=",totmarkscspr) print("Percentage of marks obtained in Computer Science theory=",pcsth,"%") print("Percentage of marks obtained in Computer Science practical=",pcspr,"%") print("Percentage of marks obtained in Computer Science=",pcs,"%") if pcsth>33 and pcspr>33: if pcs>90: print("You scored A1 grade") elif pcs>80 and pcs<90: print("You scored A2 grade") elif pcs>70 and pcs<80: print("You scored B1 grade") elif pcs>60 and pcs<70: print("You scored B2 grade") elif pcs>50 and pcs<60: print("You scored C1 grade") elif pcs>40 and pcs<50: print("You scored C2 grade") elif pcs>33 and pcs<40: print("You scored D grade") elif pcsth>33 and pcpr<33: print("You failed because you failed in practical examinations") elif pcsth<33 and pcspr>33: print("Print you failed because you failed theory examinations") elif pcsth<33 and pcspr<33: print("You failed in both practical and theory") #BIOLOGY #BIOLOGY FOR PCMB def bio(): biopt1bio=int(input("Enter the marks you scored in Periodic Test 1 of Biology:")) biopt2bio=int(input("Enter the marks you scored in Periodic Test 2 of Biology:")) biohybio=int(input("Enter the marks you scored in Half Yearly Examination of Biology:")) biossebio=int(input("Enter the marks you scored in Session Ending Examination of Biology")) bioprbio=int(input("Enter the marks you scored in practicals of Biology")) totmarksbioth=biopt1bio+biopt2bio+biohybio+biossebio totmarksbiopr=bioprbio totmarksbio=totmarksbioth+totmarksbiopr pbioth=totmarksbioth/220*100 pbiopr=totmarksbiopr/30*100 pbio=totmarksbio/250*100 print("Total marks in Biology theory=220") print("Total Marks obtained in Biology",totmarksbio) print("Marks obtained in Biology theory=",totmarksbioth) print("Marks obtained in Biology practical=",totmarksbiopr) print("Percentage of marks obtained in Biology theory=",pbioth,"%") print("Percentage of marks obtained in Biology practical=",pbiopr,"%") print("Percentage of marks obtained in Biology=",pbio,"%") if pbioth>33 and pbiopr>33: if pbio>90: print("You scored A1 grade") elif pbio>80 and pbio<90: print("You scored A2 grade") elif pbio>70 and pbio<80: print("You scored B1 grade") elif pbio>60 and pbio<70: print("You scored B2 grade") elif pbio>50 and pbio<60: print("You scored C1 grade") elif pbio>40 and pbio<50: print("You scored C2 grade") elif pbio>33 and pbio<40: print("You scored D grade") elif pbio>33 and pbio<33: print("You failed because you failed in practical examinations") elif pbioth<33 and pbiopr>33: print("Print you failed because you failed theory examinations") elif pbioth<33 and pbiopr<33: print("You failed in both practical and theory") #BIOLOGY FOR PCB WITH HINDI def biohindi(): biopt1h=int(input("Enter the marks you scored in Periodic Test 1 of Biology:")) biopt2h=int(input("Enter the marks you scored in Periodic Test 2 of Biology:")) biohyh=int(input("Enter the marks you scored in Half Yearly Examination of Biology:")) biosseh=int(input("Enter the marks you scored in Session Ending Examination of Biology")) bioprh=int(input("Enter the marks you scored in practicals of Biology")) totmarksbiohth=biopt1h+biopt2h+biohyh+biosseh totmarksbiohpr=bioprh totmarksbioh=totmarksbiohth+totmarksbiohpr pbiohth=totmarksbiohth/220*100 pbiohpr=totmarksbiohpr/30*100 pbioh=totmarksbioh/250*100 print("Total marks in Biology theory=220") print("Total Marks obtained in Biology",totmarksbioh) print("Marks obtained in Biology theory=",totmarksbiohth) print("Marks obtained in Biology practical=",totmarksbiohpr) print("Percentage of marks obtained in Biology theory=",pbiohth,"%") print("Percentage of marks obtained in Biology practical=",pbiohpr,"%") print("Percentage of marks obtained in Biology=",pbioh,"%") if pbiohth>33 and pbiohpr>33: if pbioh>90: print("You scored A1 grade") elif pbioh>80 and pbio<90: print("You scored A2 grade") elif pbioh>70 and pbioh<80: print("You scored B1 grade") elif pbioh>60 and pbioh<70: print("You scored B2 grade") elif pbioh>50 and pbioh<60: print("You scored C1 grade") elif pbioh>40 and pbioh<50: print("You scored C2 grade") elif pbioh>33 and pbioh<40: print("You scored D grade") elif pbiohth>33 and pbiohpr<33: print("You failed because you failed in practical examinations") elif pbiohth<33 and pbiohpr>33: print("Print you failed because you failed theory examinations") elif pbiohth<33 and pbiohpr<33: print("You failed in both practical and theory") #PHYSICS #PHYSICS FOR PCM WITH CS def phycs(): ppt1cs=int(input("Enter the marks you scored in Periodic Test 1 of Physics :")) ppt2cs=int(input("Enter the marks you scored in Session Ending Examination of Physics:")) phycs=int(input("Enter the marks you scored in Half Yearly Examination of Physics :")) pssecs=int(input("Enter the marks you scored in Session Ending Examination of Physics")) pprcs=int(input("Enter the marks you scored in practicals of Physics")) totmarksphyth=ppt1cs+ppt2cs+phycs+pssecs totmarksphypr=pprcs totmarksphy=totmarksphyth+totmarksphypr pphyth=totmarksphyth/220*100 pphypr=totmarksphypr/30*100 pphy=totmarksphy/250*100 print("Total marks in Physics theory=220") print("Total Marks obtained in Physics",totmarksphy) print("Marks obtained in Physics theory=",totmarksphyth) print("Marks obtained in Physics practical=",totmarksphypr) print("Percentage of marks obtained in Physics theory=",pphyth,"%") print("Percentage of marks obtained in Physics practical=",pphypr,"%") print("Percentage of marks obtained in Physics=",pphy,"%") if pphyth>33 and pphypr>33: if pphy>90: print("You scored A1 grade") elif pphy>80 and pphy<90: print("You scored A2 grade") elif pphy>70 and pphy<80: print("You scored B1 grade") elif pphy>60 and pphy<70: print("You scored B2 grade") elif pphy>50 and pphy<60: print("You scored C1 grade") elif pphy>40 and pphy<50: print("You scored C2 grade") elif pphy>33 and pphy<40: print("You scored D grade") elif pphyth>33 and pphypr<33: print("You failed because you failed in practical examinations") elif pphyth<33 and pphypr>33: print("Print you failed because you failed theory examinations") elif pphyth<33 and pphypr<33: print("You failed in both practical and theory") #PHYSICS FOR PCB WITH HINDI def phyhin(): ppt1h=int(input("Enter the marks you scored in Periodic Test 1 of Physics :")) ppt2h=int(input("Enter the marks you scored in Periodic Test 2 of Physics:")) phyh=int(input("Enter the marks you scored in Half Yearly Examination of Physics :")) psseh=int(input("Enter the marks you scored in Session Ending Examination of Physics")) pprh=int(input("Enter the marks you scored in practicals of Physics")) totmarksphyhth=ppt1h+ppt2h+phyh+psseh totmarksphyhpr=pprh totmarksphyh=totmarksphyhth+totmarksphyhpr pphyhth=totmarksphyhth/220*100 pphyhpr=totmarksphyhpr/30*100 pphyh=totmarksphyh/250*100 print("Total marks in Physics theory=220") print("Total Marks obtained in Physics",totmarksphyh) print("Marks obtained in Physics theory=",totmarksphyhth) print("Marks obtained in Physics practical=",totmarksphyhpr) print("Percentage of marks obtained in Physics theory=",pphyhth,"%") print("Percentage of marks obtained in Physics practical=",pphyhpr,"%") print("Percentage of marks obtained in Physics=",pphyh,"%") if pphyhth>33 and pphyhpr>33: if pphyh>90: print("You scored A1 grade") elif pphyh>80 and pphy<90: print("You scored A2 grade") elif pphyh>70 and pphyh<80: print("You scored B1 grade") elif pphyh>60 and pphyh<70: print("You scored B2 grade") elif pphyh>50 and pphyh<60: print("You scored C1 grade") elif pphyh>40 and pphyh<50: print("You scored C2 grade") elif pphyh>33 and pphyh<40: print("You scored D grade") elif pphyhth>33 and pphyhpr<33: print("You failed because you failed in practical examinations") elif pphyhth<33 and pphyhpr>33: print("Print you failed because you failed theory examinations") elif pphyhth<33 and pphyhpr<33: print("You failed in both practical and theory") #PHYSICS FOR PCMB def phybio(): ppt1bio=int(input("Enter the marks you scored in Periodic Test 1 of Physics :")) ppt2bio=int(input("Enter the marks you scored in Periodic Test 2 of Physics:")) phybio=int(input("Enter the marks you scored in Half Yearly Examination of Physics :")) pssebio=int(input("Enter the marks you scored in Session Ending Examination of Physics")) pprbio=int(input("Enter the marks you scored in practicals of Physics")) totmarksphybioth=ppt1bio+ppt2bio+phybio+pssebio totmarksphybiopr=pprbio totmarksphybio=totmarksphybioth+totmarksphybiopr pphybioth=totmarksphybioth/220*100 pphybiopr=totmarksphybiopr/30*100 pphybio=totmarksphybio/250*100 print("Total marks in Physics theory=220") print("Total Marks obtained in Physics",totmarksphybio) print("Marks obtained in Physics theory=",totmarksphybioth) print("Marks obtained in Physics practical=",totmarksphybiopr) print("Percentage of marks obtained in Physics theory=",pphybioth,"%") print("Percentage of marks obtained in Physics=",pphybio,"%") if pphybioth>33 and pphybiopr>33: if pphyh>90: print("You scored A1 grade") elif pphybio>80 and pphybio<90: print("You scored A2 grade") elif pphybio>70 and pphybio<80: print("You scored B1 grade") elif pphybio>60 and pphybio<70: print("You scored B2 grade") elif pphybio>50 and pphybio<60: print("You scored C1 grade") elif pphybio>40 and pphybio<50: print("You scored C2 grade") elif pphybio>33 and pphybio<40: print("You scored D grade") elif pphybioth>33 and pphybiopr<33: print("You failed because you failed in practical examinations") elif pphybioth<33 and pphybiopr>33: print("Print you failed because you failed theory examinations") elif pphybioth<33 and pphybiopr<33: print("You failed in both practical and theory") #CHEMISTRY #CHEMISTRY FOR PCM WITH CS def chemcs(): cpt1cs=int(input("Enter the marks you scored in Periodic Test 1 of Chemistry :")) cpt2cs=int(input("EEnter the marks you scored in Session Ending Examination of Chemistry:")) chycs=int(input("Enter the marks you scored in HalF Yearly Examination of Chemistry:")) cssecs=int(input("Enter the marks you scored in Session Ending Examination of Chemistry")) crcs=int(input("Enter the marks you scored in practicals of Chemistry")) totmarkschcsth=cpt1cs+cpt2cs+chycs+cssecs totmarkschcspr=crcs totmarkschcs=totmarkschcsth+totmarkschcspr pchcsth=totmarkschcsth/220*100 pchcspr=totmarkschcspr/30*100 pchcs=totmarkschcs/250*100 print("Total marks in Chemistry theory=220") print("Total Marks obtained in Chemistry",totmarkschcs) print("Marks obtained in Chemistry theory=",totmarkschcsth) print("Marks obtained in Chemistry practical=",totmarkschcspr) print("Percentage of marks obtained in Chemistry theory=",pchcsth,"%") print("Percentage of marks obtained in Chemistry practical=",pchcspr,"%") print("Percentage of marks obtained in Chemistry=",pchcs,"%") if pchcs>33 and pchcs>33: if pchbio>90: print("You scored A1 grade") elif pchbio>80 and pchbio<90: print("You scored A2 grade") elif pphybio80: print("You scored B1 grade") elif pchbio>60 and pchbio<70: print("You scored B2 grade") elif pchbio>50 and pchbio<60: print("You scored C1 grade") elif pchbio>40 and pchbio<50: print("You scored C2 grade") elif pchbio>33 and pchbio<40: print("You scored D grade") elif pchcs>33 and pchcs<33: print("You failed because you failed in practical examinations") elif pchcs<33 and pchcs>33: print("Print you failed because you failed theory examinations") elif pchcs<33 and pchcs<33: print("You failed in both practical and theory") #CHEMISTRY FOR PCB WITH HINDI def chemhin(): cpt1h=int(input("Enter the marks you scored in Periodic Test 1 of Chemistry :")) cpt2h=int(input("EEnter the marks you scored in Periodic Test 2 of Chemistry:")) chyh=int(input("Enter the marks you scored in HalF Yearly Examination of Chemistry:")) csseh=int(input("Enter the marks you scored in Session Ending Examination of Chemistry")) cprh=int(input("Enter the marks you scored in practicals of Chemistry")) totmarkschhth=cpt1h+cpt2h+chyh+csseh totmarkschhpr=cprh totmarkschh=totmarkschhth+totmarkschhpr pchhth=totmarkschhth/220*100 pchhpr=totmarkschhpr/30*100 pchh=totmarkschh/250*100 print("Total marks in Chemistry theory=220") print("Total Marks obtained in Chemistry",totmarkschh) print("Marks obtained in Chemistry theory=",totmarkschhth) print("Marks obtained in Chemistry practical=",totmarkschhpr) print("Percentage of marks obtained in Chemistry theory=",pchhth,"%") print("Percentage of marks obtained in Chemistry practical=",pchhpr,"%") print("Percentage of marks obtained in Chemistry=",pchh,"%") if pchhth>33 and pchhpr>33: if pchh>90: print("You scored A1 grade") elif pchh>80 and pchh<90: print("You scored A2 grade") elif pchh>70 and pchh<80: print("You scored B1 grade") elif pchh>60 and pchh<70: print("You scored B2 grade") elif pchh>50 and pchh<60: print("You scored C1 grade") elif pchh>40 and pchh<50: print("You scored C2 grade") elif pchh>33 and pchh<40: print("You scored D grade") elif pchhth>33 and pchhpr<33: print("You failed because you failed in practical examinations") elif pchhth<33 and pchhpr>33: print("Print you failed because you failed theory examinations") elif pchhth<33 and pchhpr<33: print("You failed in both practical and theory") #CHEMISTRY FOR PCMB def chembio(): cpt1bio=int(input("Enter the marks you scored in Periodic Test 1 of Chemistry :")) cpt2bio=int(input("EEnter the marks you scored in Periodic Test 2 of Chemistry:")) chybio=int(input("Enter the marks you scored in HalF Yearly Examination of Chemistry:")) cssebio=int(input("Enter the marks you scored in Session Ending Examination of Chemistry")) cprbio=int(input("Enter the marks you scored in practicals of Chemistry")) totmarkschbioth=cpt1bio+cpt2bio+chybio+cssebio totmarkschbiopr=cprbio totmarkschbio=totmarkschbioth+totmarkschbiopr pchbioth=totmarkschbioth/220*100 pchbiopr=totmarkschbiopr/30*100 pchbio=totmarkschbio/250*100 print("Total marks in Chemistry theory=220") print("Total Marks obtained in Chemistry",totmarkschbio) print("Marks obtained in Chemistry theory=",totmarkschbioth) print("Marks obtained in Chemistry practical=",totmarkschbiopr) print("Percentage of marks obtained in Chemistry theory=",pchbioth,"%") print("Percentage of marks obtained in Chemistry practical=",pchbiopr,"%") print("Percentage of marks obtained in Chemistry=",pchbio,"%") if pchbioth>33 and pchbiopr>33: if pchbio>90: print("You scored A1 grade") elif pchbio>80 and pchbio<90: print("You scored A2 grade") elif pphybio80: print("You scored B1 grade") elif pchbio>60 and pchbio<70: print("You scored B2 grade") elif pchbio>50 and pchbio<60: print("You scored C1 grade") elif pchbio>40 and pchbio<50: print("You scored C2 grade") elif pchbio>33 and pchbio<40: print("You scored D grade") elif pchbioth>33 and pchbiopr<33: print("You failed because you failed in practical examinations") elif pchbioth<33 and pchbiopr>33: print("Print you failed because you failed theory examinations") elif pchbioth<33 and pchbiopr<33: print("You failed in both practical and theory") #EXTRA HUMANITIES SUBJECTS #HISTORY def his(): hispt1hum=int(input("Enter the marks you scored in Periodic Test 1 of History:")) hispt2hum=int(input("Enter the marks you scored in Periodic Test 2 of History:")) hishyhum=int(input("Enter the marks you scored in Half Yearly Examination of History:")) hisssehum=int(input("Enter the marks you scored in Session Ending Examination of History")) hisprhum=int(input("Enter the marks you scored in internals of History")) totmarkshisth=hispt1hum+hispt2hum+hishyhum+hisssehum totmarkshispr=hisprhum totmarkshis=totmarkshisth+totmarkshispr phisth=totmarkshisth/240*100 phispr=totmarkshispr/20*100 phis=totmarkshis/260*100 print("Total marks in History theory=240") print("Total Marks obtained in History",totmarkshis) print("Marks obtained in History theory=",totmarkshisth) print("Marks obtained in History practical=",totmarkshispr) print("Percentage of marks obtained in History theory=",phisth,"%") print("Percentage of marks obtained in History practical=",phispr,"%") print("Percentage of marks obtained in History=",phis,"%") if phisth>33 and phispr>33: if phis>90: print("You scored A1 grade") elif phis>80 and phis<90: print("You scored A2 grade") elif phis>70 and phis<80: print("You scored B1 grade") elif phis>60 and phis<70: print("You scored B2 grade") elif phis>50 and phis<60: print("You scored C1 grade") elif phis>40 and phis<50: print("You scored C2 grade") elif phis>33 and phis<40: print("You scored D grade") elif phisth>33 and phispr<33: print("You failed because you failed in practical examinations") elif phisth<33 and phispr>33: print("Print you failed because you failed theory examinations") elif phisth<33 and phispr<33: print("You failed in both practical and theory") #GEOGRAPHY def geo(): geopt1hum=int(input("Enter the marks you scored in Periodic Test 1 of Geography:")) geopt2hum=int(input("EEnter the marks you scored in Periodic Test 2 of Geography:")) geohyhum=int(input("Enter the marks you scored in HalF Yearly Examination of Geography:")) geossehum=int(input("Enter the marks you scored in Session Ending Examination of Geography")) geoprhum=int(input("Enter the marks you scored in internals of Geography")) totmarksgeoth=geopt1hum+geopt2hum+geohyhum+geossehum totmarksgeopr=geoprhum totmarksgeo=totmarksgeoth+totmarksgeopr pgeoth=totmarksgeoth/240*100 pgeopr=totmarksgeopr/20*100 pgeo=totmarksgeo/260*100 print("Total marks in English theory=240") print("Total Marks obtained in English",totmarksgeo) print("Marks obtained in English theory=",totmarksgeoth) print("Marks obtained in English practical=",totmarksgeopr) print("Percentage of marks obtained in English theory=",pgeoth,"%") print("Percentage of marks obtained in English practical=",pgeopr,"%") print("Percentage of marks obtained in English=",pgeo,"%") if pgeoth>33 and pgeopr>33: if pgeo>90: print("You scored A1 grade") elif pgeo>80 and pgeo<90: print("You scored A2 grade") elif pphybio80: print("You scored B1 grade") elif pgeo>60 and pgeo<70: print("You scored B2 grade") elif pgeo>50 and pgeo<60: print("You scored C1 grade") elif pgeo>40 and phis<50: print("You scored C2 grade") elif pgeo>33 and pgeo<40: print("You scored D grade") elif pgeoth>33 and pgeopr<33: print("You failed because you failed in practical examinations") elif pgeoth<33 and pgeopr>33: print("Print you failed because you failed theory examinations") elif pgeoth<33 and pgeopr<33: print("You failed in both practical and theory") #POLITICAL SCIENCE def polsc(): polpt1hum=int(input("Enter the marks you scored in Periodic Test 1 of Political Science:")) polpt2hum=int(input("Enter the marks you scored in Periodic Test 2 of Political Science:")) polhyhum=int(input("Enter the marks you scored in Half Yearly Examination of Political Science:")) polssehum=int(input("Enter the marks you scored in Session Ending Examination of Political Science")) polprhum=int(input("Enter the marks you scored in internals of Political Science")) totmarkspolth=polpt1hum+polpt2hum+polhyhum+polssehum totmarkspolpr=polprhum totmarkspol=totmarkspolth+totmarkspolpr ppolth=totmarkspolth/240*100 ppolpr=totmarkspolpr/20*100 ppol=totmarkspol/260*100 print("Total marks in Political Science theory=240") print("Total Marks obtained in Political Science",totmarkspol) print("Marks obtained in Political Science theory=",totmarkspolth) print("Marks obtained in Political Science practical=",totmarkspolpr) print("Percentage of marks obtained in Political Science theory=",ppolth,"%") print("Percentage of marks obtained in Political Science practical=",ppolpr,"%") print("Percentage of marks obtained in Political Science=",ppol,"%") if ppolth>33 and ppolpr>33: if ppol>90: print("You scored A1 grade") elif ppol>80 and ppol<90: print("You scored A2 grade") elif ppol>70 and ppol<80: print("You scored B1 grade") elif ppol>60 and ppol<70: print("You scored B2 grade") elif ppol>50 and ppol<60: print("You scored C1 grade") elif ppol>40 and ppol<50: print("You scored C2 grade") elif ppol>33 and ppol<40: print("You scored D grade") elif ppolth>33 and ppolpr<33: print("You failed because you failed in practical examinations") elif ppolth<33 and ppolpr>33: print("Print you failed because you failed theory examinations") elif ppolth<33 and ppolpr<33: print("You failed in both practical and theory") #HOW MUCH REQUIRED IN SESSION ENDING EXAMINATION TO PASS IN PCM #MATHEMATICS def reqmathscs(): print("Enter your marks in mathematics") print() mpt1cs=int(input("Enter the marks scored in Periodic Test 1 of Mathematics :")) mpt2cs=int(input("Enter the marks scored in Periodic Test 2 Of Mathematics:")) mhycs=int(input("Enter the marks scored in Half Yearly Examination of Mathematics:")) print() wmpt1cs=mpt1cs/40*10 wmpt2cs=mpt2cs/40*10 wmhycs=mhycs/80*30 mathscs=wmpt1cs+wmpt2cs+wmhycs if mathscs>=30: print("You scored",mathscs,"till now and passed in Mathematics") if 30>mathscs: print("You scored",mathscs,"till now and require",(30-mathscs)*2,"marks in Session Ending Examination in Mathematics") #ENGLISH def reqenglishcs(): print("Enter your marks in English") print() ept1cs=int(input("Enter the marks scored in Periodic Test 1 of English :")) ept2cs=int(input("Enter the marks scored in Periodic Test 2 of English:")) ehycs=int(input("Enter the marks scored in Half Yearly Examination of English:")) print() wept1cs=ept1cs/40*10 wept2cs=ept2cs/40*10 wehycs=ehycs/80*30 englishcs=wept1cs+wept2cs+wehycs if englishcs>=30: print("You scored",englishcs,"till now and passed in English") if englishcs<30: print("You scored",englishcs,"till now and require",(30-englishcs)*2,"marks in Session Ending Examination in English") #CHEMISTRY def reqchemistrycs(): print("Enter your marks in Chemistry") print() cpt1cs=int(input("Enter the marks scored in Periodic Test 1 of Chemistry :")) cpt2cs=int(input("Enter the marks scored Periodic Test 2 of Chemistry:")) chycs=int(input("Enter the marks scored in Half Yearly Examination of Chemistry:")) print() wcpt1cs=cpt1cs/40*10 wcpt2cs=cpt2cs/40*10 wchycs=chycs/70*30 chemistrycs=wcpt1cs+wcpt2cs+wchycs if chemistrycs>=28: print("You scored",chemistrycs,"till now and passed in Chemistry") if chemistrycs<28: print("You scored",chemistrycs,"till now and require",(28-chemistrycs)*2,"marks in Session Ending Examination in Chemistry") #PHYSICS def reqphysicscs(): print("Enter your marks in Physics") print() ppt1cs=int(input("Enter the marks scored in Periodic Test 1 of Physics :")) ppt2cs=int(input("Enter the marks scored in Periodic Test 2 of Physics:")) phycs=int(input("Enter the marks scored in Half Yearly Examination of Physics :")) print() wppt1cs=ppt1cs/40*10 wppt2cs=ppt2cs/40*10 wphycs=phycs/70*30 physicscs=wppt1cs+wppt2cs+wphycs if physicscs>=28: print("You scored",physicscs,"till now and passed in Physics") if physicscs<28: print("You scored",physicscs,"till now and require",(28-physicscs)*2,"marks in Session Ending Examination in Physics") #COMPUTER SCIENCE def reqcscs(): print("Enter your marks in Computer Sciecnce") print() cspt1cs=int(input("Enter the marks scored in Periodic Test 1 of Computer Science :")) cspt2cs=int(input("Enter the marks scored in Periodic Test 2 Of Computer Science :")) cshycs=int(input("Enter the marks scored in Half Yearly Examination of Computer Science:")) print() wcspt1cs=cspt1cs/40*10 wcspt2cs=cspt2cs/40*10 wcshycs=cshycs/70*30 cscs=wcspt1cs+wcspt2cs+wcshycs if cscs>=28: print("You scored",cscs,"till now and passed in Computer Science") if cscs<28: print("You scored",cscs,"till now and require",(28-cscs)*2,"marks in Session Ending Examination in Computer Science") #HOW MUCH REQUIRED IN SESSION ENDING EXAMINATION TO PASS IN PCMB #MATHEMATICS def reqmathsbio(): print("Enter your marks in Mathematica") print() mpt1bio=int(input("Enter the marks scored in Periodic Test 1 of Mathematics :")) mpt2bio=int(input("Enter the marks scored in Periodic Test 2 Of Mathematics:")) mhybio=int(input("Enter the marks scored in Half Yearly Examination of Mathematics:")) print() wmpt1bio=mpt1bio/40*10 wmpt2bio=mpt2bio/40*10 wmhybio=mhybio/80*30 mathsbio=wmpt1bio+wmpt2bio+wmhybio if mathsbio>=30: print("You scored",mathsbio,"till now and passed in Mathematics") if mathsbio<30: print("You scored",mathsbio,"till now and require",(30-mathsbio)*2,"marks in Session Ending Examination in Mathematics") #ENGLISH def reqenglishbio(): print("Enter your marks in English") print() ept1bio=int(input("Enter the marks scored in Periodic Test 1 of English:")) ept2bio=int(input("Enter the marks scored in Periodic Test 2 of English:")) ehybio=int(input("Enter the marks scored in Half Yearly Examination of English:")) print() wept1bio=ept1bio/40*10 wept2bio=ept2bio/40*10 wehybio=ehybio/80*30 englishbio=wept1bio+wept2bio+wehybio if englishbio>=30: print("You scored",englishbio,"till now and passed in English") if englishbio<30: print("You scored",englishbio,"till now and require",(30-englishbio)*2,"marks in Session Ending Examination in English") #CHEMISTRY def reqchemistrybio(): print("Enter your marks in Chemistry") print() cpt1bio=int(input("Enter the marks scored in Periodic Test 1 of Chemistry :")) cpt2bio=int(input("EEnter the marks scored in Periodic Test 2 of Chemistry:")) chybio=int(input("Enter the marks scored in HalF Yearly Examination of Chemistry:")) print() wcpt1bio=cpt1bio/40*10 wcpt2bio=cpt2bio/40*10 wchybio=chybio/70*30 chemistrybio=wcpt1bio+wcpt2bio+wchybio if chemistrybio>=28: print("You scored",chemistrybio,"till now and passed in Chemistry") if chemistrybio<28: print("You scored",chemistrybio,"till now and require",(28-chemistrybio)*2,"marks in Session Ending Examination in Chemistry") #PHYSICS def reqphysicsbio(): print("Enter your marks in Physics") print() ppt1bio=int(input("Enter the marks scored in Periodic Test 1 of Physics :")) ppt2bio=int(input("Enter the marks scored in Periodic Test 2 of Physics:")) phybio=int(input("Enter the marks scored in Half Yearly Examination of Physics :")) print() wppt1bio=ppt1bio/40*10 wppt2bio=ppt2bio/40*10 wphybio=phybio/70*30 physicsbio=wppt1bio+wppt2bio+wphybio if physicsbio>=28: print("You scored",physicsbio,"till now and passed in Physics") if physicsbio<28: print("You scored",physicsbio,"till now and require",(28-physicsbio)*2,"marks in Session Ending Examination in Physics") #BIOLOGY def reqbiobio(): print("Enter your marks in Biology") print() biopt1bio=int(input("Enter the marks scored in Periodic Test 1 of Biology:")) biopt2bio=int(input("Enter the marks scored in Periodic Test 2 of Biology:")) biohybio=int(input("Enter the marks scored in Half Yearly Examination of Biology:")) print() wcspt1bio=biopt1bio/40*10 wcspt2bio=biopt2bio/40*10 wcshybio=biohybio/70*30 biobio=wcspt1bio+wcspt2bio+wcshybio if biobio>=28: print("You scored",biobio,"till now and passed in Biology") if biobio<28: print("You scored",biobio,"till now and require",(28-biobio)*2,"marks in Session Ending Examination in Biology") #HOW MUCH REQUIRED IN SESSION ENDING EXAMINATION TO PASS IN PCB #HINDI def reqhindibioh(): print("Enter your marks in Hindi") print() hpt1h=int(input("Enter the marks scored in Periodic Test 1 of Hindi :")) hpt2h=int(input("Enter the marks scored in Periodic Test 2 Of Hindi:")) hhyh=int(input("Enter the marks scored in Half Yearly Examination of Hindi:")) print() whpt1bio=hpt1h/40*10 whpt2bio=hpt2h/40*10 whhybio=hhyh/80*30 hindibioh=whpt1bio+whpt2bio+whhybio if hindibioh>=30: print("You scored",hindibioh,"till now and passed in Hindi") if hindibioh<30: print("You scored",hindibioh,"till now and require",(30-hindibioh)*2,"marks in Session Ending Examination in Hindi") #ENGLISH def reqenglishbioh(): print("Enter your marks in English") print() ept1h=int(input("Enter the marks scored in Periodic Test 1 of English :")) ept2h=int(input("Enter the marks scored in Periodic Test 2 of English:")) ehyh=int(input("Enter the marks scored in Half Yearly Examination of English:")) print() wept1bioh=ept1h/40*10 wept2bioh=ept2h/40*10 wehybioh=ehyh/80*30 englishbioh=wept1bioh+wept2bioh+wehybioh if englishbioh>=30: print("You scored",englishbioh,"till now and passed in English") if englishbioh<30: print("You scored",englishbioh,"till now and require",(30-englishbioh)*2,"marks in Session Ending Examination in English") #CHEMISTRY def reqchemistrybioh(): print("Enter your marks in Chemistry") print() cpt1h=int(input("Enter the marks scored in Periodic Test 1 of Chemistry :")) cpt2h=int(input("EEnter the marks scored in Periodic Test 2 of Chemistry:")) chyh=int(input("Enter the marks scored in HalF Yearly Examination of Chemistry:")) print() wcpt1bioh=cpt1h/40*10 wcpt2bioh=cpt2h/40*10 wchybioh=chyh/70*30 chemistrybioh=wcpt1bioh+wcpt2bioh+wchybioh if chemistrybioh>=28: print("You scored",chemistrybioh,"till now and passed in Chemistry") if chemistrybioh<28: print("You scored",chemistrybioh,"till now and require",(28-chemistrybioh)*2,"marks in Session Ending Examination in Chemistry") #PHYSICS def reqphysicsbioh(): print("Enter your marks in Physics") print() ppt1h=int(input("Enter the marks scored in Periodic Test 1 of Physics :")) ppt2h=int(input("Enter the marks scored in Periodic Test 2 of Physics:")) phyh=int(input("Enter the marks scored in Half Yearly Examination of Physics :")) print() wppt1bioh=ppt1h/40*10 wppt2bioh=ppt2h/40*10 wphybioh=phyh/70*30 physicsbioh=wppt1bioh+wppt2bioh+wphybioh if physicsbioh>=28: print("You scored",physicsbioh,"till now and passed in Physics") if physicsbioh<28: print("You scored",physicsbioh,"till now and require",(28-physicsbioh)*2,"marks in Session Ending Examination in Physics") #BIOLOGY def reqbiobioh(): print("Enter your marks in Biology") print() biopt1h=int(input("Enter the marks scored in Periodic Test 1 of Biology:")) biopt2h=int(input("Enter the marks scored in Periodic Test 2 of Biology:")) biohyh=int(input("Enter the marks scored in Half Yearly Examination of Biology:")) print() wcspt1bioh=biopt1h/40*10 wcspt2bioh=biopt2h/40*10 wcshybioh=biohyh/70*30 biobioh=wcspt1bioh+wcspt2bioh+wcshybioh if biobioh>=28: print("You scored",biobioh,"till now and passed in Biology") if biobioh<28: print("You scored",biobioh,"till now and require",(28-biobioh)*2,"marks in Session Ending Examination in Biology") #HOW MUCH REQUIRED IN SESSION ENDING EXAMINATION TO PASS IN HUMANITIES #HINDI def reqhindihum(): print("Enter your marks in Hindi") print() hpt1hum=int(input("Enter the marks scored in Periodic Test 1 of Hindi:")) hpt2hum=int(input("Enter the marks scored in Periodic Test 2 Of Hindi:")) hhyhum=int(input("Enter the marks scored in Half Yearly Examination of Hindi:")) print() whpt1hum=hpt1hum/40*10 whpt2hum=hpt2hum/40*10 whhyhum=hhyhum/80*30 hindihum=whpt1hum+whpt2hum+whhyhum if hindihum>=30: print("You scored",hindihum,"till now and passed in Hindi") if hindihum<30: print("You scored",hindihum,"till now and require",(30-hindihum)*2,"marks in Session Ending Examination in Hindi") #ENGLISH def reqenglishhum(): print("Enter your marks in English") print() ept1hum=int(input("Enter the marks scored in Periodic Test 1 of English:")) ept2hum=int(input("Enter the marks scored in Periodic Test 2 of English:")) ehyhum=int(input("Enter the marks scored in Half Yearly Examination of English:")) print() wept1hum=ept1hum/40*10 wept2hum=ept2hum/40*10 wehyhum=ehyhum/80*30 englishhum=wept1hum+wept2hum+wehyhum if englishhum>=30: print("You scored",englishhum,"till now and passed in English") if englishhum<30: print("You scored",englishhum,"till now and require",(30-englishhum)*2,"marks in Session Ending Examination in English") #HISTORY def reqhistoryhum(): print("Enter your marks in History") print() hispt1hum=int(input("Enter the marks scored in Periodic Test 1 of History :")) hpt2hum=int(input("EEnter the marks scored in Periodic Test 2 of History:")) hishyhum=int(input("Enter the marks scored in HalF Yearly Examination of History:")) print() whispt1hum=hispt1hum/40*10 whispt2hum=hpt2hum/40*10 whishyhum=hishyhum/80*30 historyhum=whispt1hum+whispt2hum+whishyhum if historyhum>=30: print("You scored",historyhum,"till now and passed in History") if historyhum<30: print("You scored",historyhum,"till now and require",(30-historyhum)*2,"marks in Session Ending Examination in History") #POLITICAL SCIENCE def reqpolschum(): print("Enter your marks in Political Science") print() polpt1hum=int(input("Enter the marks scored in Periodic Test 1 of Political Science:")) polpt2hum=int(input("Enter the marks scored in Periodic Test 2 of Political Science:")) polhyhum=int(input("Enter the marks scored in Half Yearly Examination of Political Science:")) print() wpolscpt1hum=polpt1hum/40*10 wpolscpt2hum=polpt2hum/40*10 wpolschyhum=polhyhum/80*30 polschum=wpolscpt1hum+wpolscpt2hum+wpolschyhum if polschum>=30: print("You scored",physicsbioh,"till now and passed in Political Science") if polschum<30: print("You scored",polschum,"till now and require",(30-polschum)*2,"marks in Session Ending Examination in Political Science") #GEOGRAPHY def reqgeographyhum(): print("Enter your marks in Geography") print() geopt1hum=int(input("Enter the marks scored in Periodic Test 1 of Geography:")) geopt2hum=int(input("Enter the marks scored in Periodic Test 2 of Geography:")) geohyhum=int(input("Enter the marks scored in Half Yearly Examination of Geography:")) print() wgeopt1hum=geopt1hum/40*10 wgeopt2hum=geopt2hum/40*10 wgeohyhum=geohyhum/80*30 geohum=wgeopt1hum+wgeopt2hum+wgeohyhum if geohum>=30: print("You scored",geohum,"till now and passed in Geography") if geohum<28: print("You scored",geohum,"till now and require",(30-geohum)*2,"marks in Session Ending Examination in Geography") #INTRODUCTION def intro(): print("\t\t\t\t*****************************************") print("\t\t\t\tRESULT CALCULATOR AND MARKSHEET GENERATOR") print("\t\t\t\t*****************************************") print() #INTRODUCTION OF PROJECT def projectintro(): print("-This is a python program which can help you to calculate marks generate a marksheet to keep a track of academic records of the students reading in your school") print("-This can help you to calculate percentage and marks of individual exams") print("-This can help you to generate a session ending report card") print("-You can do analysis of each and every subject individually") print("-Hope this project work can make your work easier :)") print() #START OF THE PROGRAM ch='' intro() print() projectintro() while ch !=4: #MENU OF PROGRAM print("\tMAIN MENU") print("\t1. INDIVIDUAL SUBJECT MARKS ANALYSIS") print("\t2. INDIVIDUAL EXAM MARKS ANALYSIS") print("\t3. CALCULATOR FOR REQUIRED MARKS IN SEE TO PASS IN THEORY FOR CLASS 11") print("\t4. EXIT") print("\tSelect Your Option (1-4) ") ch = input() if ch=='1': cls=int(input("Enter for which class you want marks for:")) if cls>=1 and cls<=5: print("You are now calculating marks individually for each subject for class",cls) print("Type m for maths") print("Type h for hindi") print("Type evs for environmental studies") print("Type eng for english") print("all for every subject") scpri=input("Select the subject for which you want to calculate the marks:") print("Now we are calculating marks individually of subject",scpri,"for class",cls) num1=int(input("Enter the strength of the class:")) for i1 in range(0,num1): st1=input("Enter the name of Student:") rn1=int(input("Enter roll number of student:")) print() if scpri=='m': print("Name:",st1) print("Roll No:",rn1) print() primaths() elif scpri=='h': print("Name:",st1) print("Roll No:",rn1) print() hindipri() elif scpri=='evs': print("Name:",st1) print("Roll No:",rn1) print() prievs() elif scpri=='eng': print("Name:",st1) print("Roll No:",rn1) print() engpri() elif scpri=='all': print("Name:",st1) print("Roll No:",rn1) print() print("Calculating marks for mathematics") primaths() print() print("Calculating marks for Hindi") hindipri() print() print("Calculating marks for Environmental Science") prievs() print() print("Calculating marks for English") engpri() print() if cls>=6 and cls<=8: print("You are now calculating marks individually for each subject for class",cls) print() print("Type m for maths") print("Type h for hindi") print("Type sc for science") print("Type eng for english") print("Type ssc for Social Science") print("Type skt for Sanskrit") print("all for every subject") scsec=input("Select the subject for which you want to calculate the marks:") print("Now we are calculating marks individually of subject",scsec,"for class",cls) num2=int(input("Enter the strength of the class:")) for i2 in range(0,num2): st2=input("Enter the name of Student:") rn2=int(input("Enter roll number of student:")) print() if scsec=='m': print("Name:",st2) print("Roll No:",rn2) secmaths() elif scsec=='h': print("Name:",st2) print("Roll No:",rn2) hindisec() elif scsec=='skt': print("Name:",st2) print("Roll No:",rn2) sktsec() elif scsec=='eng': print("Name:",st2) print("Roll No:",rn2) engsec() elif scsec=='ssc': print("Name:",st2) print("Roll No:",rn2) soscsec() elif scsec=='sc': print("Name:",st2) print("Roll No:",rn2) scisec() elif scsec=='all': print("Name:",st2) print("Roll No:",rn2) print() print("Now calculating for maths") secmaths() print() print("Now calculating for hindi") hindisec() print() print("Now calculating for Sanskrit") sktsec() print() print("Now calculating for English") engsec() print() print("Now calculating for social science") soscsec() print() print("Now calculating for science") scisec() print() if cls==9: print("Type hindi for class 9 hindi") print("Type sanskrit for class 9 sanskrit") stream9=input("Select the subject combination hindi/sanskrit") if stream9=='hindi': print("Now you are calculating marks for each subject individually of class 9 hindi") print() print("Type m for maths") print("Type h for hindi") print("Type e for english") print("Type s for science") print("Type ssc for social science") print("Type all for all subjects") sc9h=input("Select the subject for which you want to calculate marks") num3=int(input("Enter strength of class")) for i in range(num3): st3=input("Enter the name of student") rn3=int(input("Enter the roll number of student")) print() if sc9h=='m': print("Now calculating marks individually for maths") print() print("Name:",st3) print("Roll NO:",rn3) print() hmaths() elif sc9h=='h': print("Now calculating marks individually for hindi") print() print("Name:",st3) print("Roll NO:",rn3) print() ninehindi() elif sc9h=='e': print("Now calculating marks individually for English") print() print("Name:",st3) print("Roll NO:",rn3) print() engnineh() elif sc9h=='s': print("Now calculating marks individually for Science") print() print("Name:",st3) print("Roll NO:",rn3) print() scinhindi() elif sc9h=='ssc': print("Now calculating marks individually for Social Science") print() print("Name:",st3) print("Roll NO:",rn3) print() soscnhini() elif sc9h=='all': print("Name:",st3) print("Roll No:",rn3) print() print("Now calculating for maths") hmaths() print() print("Now calculating for hindi") ninehindi() print() print("Now calculating for English") engnineh() print() print("Now calculating for social science") soscnhindi() print() print("Now calculating for science") scinhindi() print() elif stream9=='sanskrit': print("Now you are calculating marks for each subject individually of class 9 sanskrit") print() print("Type m for maths") print("Type skt for sanskrit") print("Type e for english") print("Type sc for science") print("Type ssc for social science") print("Type all for all subjects") sc9s=input("Select the subject for which you want to calculate marks") num4=int(input("Enter strength of class")) for i in range(num4): st4=input("Enter the name of student") rn4=int(input("Enter the roll number of student")) print() if sc9s=='m': print("Now calculating marks individually for maths") print() print("Name:",st4) print("Roll NO:",rn4) print() smaths() elif sc9s=='skt': print("Now calculating marks individually for Sanskrit") print() print("Name:",st4) print("Roll NO:",rn4) print() sktnine() elif sc9s=='e': print("Now calculating marks individually for English") print() print("Name:",st4) print("Roll NO:",rn4) print() engnines() elif sc9s=='sc': print("Now calculating marks individually for Science") print() print("Name:",st4) print("Roll NO:",rn4) print() scinskt() elif sc9s=='ssc': print("Now calculating marks individually for Social Science") print() print("Name:",st4) print("Roll NO:",rn4) print() soscnskt() elif sc9=='all': print("Name:",st4) print("Roll No:",rn4) print() print("Now calculating for maths") smaths() print() print("Now calculating for Sanskrit") sktnine() print() print("Now calculating for English") engnines() print() print("Now calculating for social science") soscnskt() print() print("Now calculating for science") scinskt() print() if cls==11: print("Type pcm for class 11 PCM with CS") print("Type pcmb for pcmb stream") print("Type pcb for PCB with Hindi") print("Type hum for Humanities stream") stream11=input("Select the stream or subject combination") if stream11=='pcm': print("Now you are calculating marks for each subject individually of class 11 PCM with CS") print() print("Type m for Mathematics") print("Type cs for computer Science") print("Type p for Physics") print("Type chem for Chemistry") print("Type e for English") print("Type all for all subjects") scpcm=input("Select the subject for which you want to calculate marks") num5=int(input("Enter strength of class")) for i in range(num5): st5=input("Enter the name of student") rn5=int(input("Enter the roll number of student")) print() if scpcm=='m': print("Now calculating marks individually for maths") print() print("Name:",st5) print("Roll NO:",rn5) print() mathscs() elif scpcm=='cs': print("Now calculating marks individually for Computer Science") print() print("Name:",st5) print("Roll NO:",rn5) print() cse() elif scpcm=='e': print("Now calculating marks individually for English") print() print("Name:",st5) print("Roll NO:",rn5) print() engcs() elif scpcm=='chem': print("Now calculating marks individually for Chemistry") print() print("Name:",st5) print("Roll NO:",rn5) print() chemcs() elif scpcm=='p': print("Now calculating marks individually for Physics") print() print("Name:",st5) print("Roll NO:",rn5) print() phycs() elif scpcm=='all': print("Name:",st5) print("Roll No:",rn5) print() print("Now calculating for Maths") mathscs() print() print("Now calculating for Computer Science") cse() print() print("Now calculating for English") engcs() print() print("Now calculating for Physics ") phycs() print() print("Now calculating for Chemistry") chemcs() print() if stream11=='pcmb': print("Now you are calculating marks for each subject individually of class 11 PCMB") print() print("Type m for Mathematics") print("Type b for Biology") print("Type p for Physics") print("Type chem for Chemistry") print("Type e for English") print("Type all for all subjects") scpcmb=input("Select the subject for which you want to calculate marks") num6=int(input("Enter strength of class")) for i in range(num6): st6=input("Enter the name of student") rn6=int(input("Enter the roll number of student")) print() if scpcmb=='m': print("Now calculating marks individually for maths") print() print("Name:",st6) print("Roll NO:",rn6) print() mathsbio() elif scpcmb=='b': print("Now calculating marks individually for Biology") print() print("Name:",st6) print("Roll No:",rn6) print() bio() elif scpcmb=='e': print("Now calculating marks individually for English") print() print("Name:",st6) print("Roll NO:",rn6) print() engpcmb() elif scpcmb=='chem': print("Now calculating marks individually for Chemistry") print() print("Name:",st6) print("Roll NO:",rn6) print() chembio() elif scpcmb=='p': print("Now calculating marks individually for Physics") print() print("Name:",st6) print("Roll NO:",rn6) print() phybio() elif scpcmb=='all': print("Name:",st6) print("Roll No:",rn6) print() print("Now calculating for Maths") mathsbio() print() print("Now calculating for Biology") bio() print() print("Now calculating for English") engpcmb() print() print("Now calculating for Physics ") phybio() print() print("Now calculating for Chemistry") chembio() print() if stream11=='pcb': print("Now you are calculating marks for each subject individually of class 11 PCMB") print() print("Type h for Hindi") print("Type b for Biology") print("Type p for Physics") print("Type chem for Chemistry") print("Type e for English") print("Type all for all subjects") scpcb=input("Select the subject for which you want to calculate marks") num7=int(input("Enter strength of class")) for i in range(num7): st7=input("Enter the name of student") rn7=int(input("Enter the roll number of student")) print() if scpcb=='h': print("Now calculating marks individually for Hindi") print() print("Name:",st7) print("Roll NO:",rn7) print() pcbhindi() elif scpcb=='b': print("Now calculating marks individually for Biology") print() print("Name:",st7) print("Roll No:",rn7) print() biohindi() elif scpcb=='e': print("Now calculating marks individually for English") print() print("Name:",st7) print("Roll NO:",rn7) print() engpcb() elif scpcb=='chem': print("Now calculating marks individually for Chemistry") print() print("Name:",st7) print("Roll NO:",rn7) print() chemhin() elif scpcb=='p': print("Now calculating marks individually for Physics") print() print("Name:",st7) print("Roll NO:",rn7) print() phyhin() elif scpcb=='all': print("Name:",st7) print("Roll No:",rn7) print() print("Now calculating for Hindi") pcbhindi() print() print("Now calculating for Biology") biohindi() print() print("Now calculating for English") engpcb() print() print("Now calculating for Physics ") phyhin() print() print("Now calculating for Chemistry") chemhin() print() if stream11=='hum': print("Now you are calculating marks for each subject individually of class 11 Humanities") print() print("Type hin for Hindi") print("Type his for History") print("Type pol for Political Science") print("Type geo for Chemistry") print("Type eng for English") print("Type all for all subjects") schum=input("Select the subject for which you want to calculate marks") num8=int(input("Enter strength of class")) for i in range(num8): st8=input("Enter the name of student") rn8=int(input("Enter the roll number of student")) print() if schum=='hin': print("Now calculating marks individually for Hindi") print() print("Name:",st8) print("Roll NO:",rn8) print() hindihum() elif schum=='his': print("Now calculating marks individually for History") print() print("Name:",st8) print("Roll No:",rn8) print() his() elif schum=='eng': print("Now calculating marks individually for English") print() print("Name:",st8) print("Roll NO:",rn8) print() enghum() elif schum=='pol': print("Now calculating marks individually for Political Science") print() print("Name:",st8) print("Roll NO:",rn8) print() polsc() elif schum=='geo': print("Now calculating marks individually for Geography") print() print("Name:",st7) print("Roll NO:",rn8) print() geo() elif schum=='all': print("Name:",st8) print("Roll No:",rn8) print() print("Now calculating for Hindi") hindihum() print() print("Now calculating for History") his() print() print("Now calculating for English") engpcb() print() print("Now calculating for Political Science ") polsc() print() print("Now calculating for Geography") geo() print() if ch=='2': print("Type pt1 for Periodic Test 1") print("Type pt2 for Periodic Test 2") print("Type hy for Half Yearly Examination") print("Type see for Session Ending Examinations") print("Type practical for Practicals/Internals") es=input("Select for which exam you want to calculate result:") print() if es=='pt1': print("Now calculating marks for Periodic Test 1") print() classselect1=int(input("Select the class for which you want to calculate marks")) if classselect1>=1 and classselect1<=5: print("Now calculating result of Periodic test 1 for class",classselect1) print() s1=int(input("Enter the strength of class:")) for j in range(s1): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) pt1pri() print() if classselect1>=6 and classselect1<=8: print("Now calculating result of Periodic test 1 for class",classselect1) print() s1=int(input("Enter the strength of class:")) for j in range(s1): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) pt1sec() print() if classselect1==9: print("Type hindi for Periodic Test 1 class 9 hindi") print("Type sanskrit for class 9 sanskrit") hinskt=input("Enter the subject selection Class 9 hindi/sanskrit") print() if hinskt=='hindi': print("Now calculating result for class 9 hindi") s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) pt1h9() print() if hinskt=='sanskrit': print("Now calculating result for Periodic Test 1 class 9 Sanskrit") print() s3=int(input("Enter the strength of class:")) for j in range(s3): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) pt1s9() print() if classselect1==11: print("Type pcm for PCM with CS stream") print("Type pcb for PCB with Hind stream") print("Type pcmb for PCMB stream") print("Type hum for Humanities stream") print() stream=input("Select the streams or subject combination") if stream=='pcm': print("Now calculating result for Periodic Test 1 class 11 PCM with Computer Science") print() s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) pt1cs() print() if stream=='pcb': print("Now calculating result for Periodic Test 1 class 11 PCB with Hindi") print() s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) pt1h() print() if stream=='pcmb': print("Now calculating result for Periodic Test 1 class 11 PCMB") print() s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) pt1bio() print() if stream=='hum': print("Now calculating result for Periodic Test 1 class 11 Humanities") print() s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) pt1hum() print() if es=='pt2': print("Now calculating marks for Periodic Test 2") print() classselect1=int(input("Select the class for which you want to calculate marks")) if classselect1>=1 and classselect1<=5: print("Now calculating result of Periodic test 2 for class",classselect1) s1=int(input("Enter the strength of class:")) for j in range(s1): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) pt2pri() print() if classselect1>=6 and classselect1<=8: print("Now calculating result of Periodic Test 2 for class",classselect1) print() s1=int(input("Enter the strength of class:")) for j in range(s1): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) pt2sec() print() if classselect1==9: print("Type hindi for class 9 hindi") print("Type sanskrit for class 9 sanskrit") print() hinskt=input("Enter the subject selection Class 9 hindi/sanskrit") print() if hinskt=='hindi': print("Now calculating result for Periodic Test 2 class 9 hindi") s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) pt2h9() print() if hinskt=='sanskrit': print("Now calculating result for Periodic Test 2 class 9 Sanskrit") print() s3=int(input("Enter the strength of class:")) for j in range(s3): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) pt2s9() print() if classselect1==11: print("Type pcm for PCM with CS stream") print("Type pcb for PCB with Hind stream") print("Type pcmb for PCMB stream") print("Type hum for Humanities stream") print() stream=input("Select the streams or subject combination") if stream=='pcm': print("Now calculating result for PPeriodic Test 2 class 11 PCM with Computer Science") print() s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) pt2cs() print() if stream=='pcb': print("Now calculating result for Periodic Test 2 class 11 PCB with Hindi") print() s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) pt2h() print() if stream=='pcmb': print("Now calculating result for Periodic Test 2 class 11 PCMB") print() s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) pt2bio() print() if stream=='hum': print("Now calculating result for Periodic Test 2 class 11 Humanities") print() s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) pt2hum() print() if es=='hy': print("Now calculating marks for Half Yearly") print() classselect1=int(input("Select the class for which you want to calculate marks")) print() if classselect1>=1 and classselect1<=5: print("Now calculating result of Half Yearly for class",classselect1) s1=int(input("Enter the strength of class:")) for j in range(s1): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) hypri() print() if classselect1>=6 and classselect1<=8: print("Now calculating result of Half Yearly for class",classselect1) print() s1=int(input("Enter the strength of class:")) print() for j in range(s1): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) hysec() print() if classselect1==9: print("Type hindi for class 9 hindi") print("Type sanskrit for class 9 sanskrit") print() hinskt=input("Enter the subject selection Class 9 hindi/sanskrit") if hinskt=='hindi': print("Now calculating result for Half Yearly class 9 hindi") s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) hyh9() print() if hinskt=='sanskrit': print("Now calculating result for Half Yearly class 9 Sanskrit") print() s3=int(input("Enter the strength of class:")) for j in range(s3): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) hys9() print() if classselect1==11: print("Type pcm for PCM with CS stream") print("Type pcb for PCB with Hind stream") print("Type pcmb for PCMB stream") print("Type hum for Humanities stream") print() stream=input("Select the streams or subject combination") if stream=='pcm': print("Now calculating result for Half Yearly class 11 PCM with Computer Science") print() s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) hycs() print() if stream=='pcb': print("Now calculating result for Half Yearly class 11 PCB with Hindi") print() s2=int(input("Enter the strength of class:")) print() for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) hyh() print() if stream=='pcmb': print("Now calculating result for Half Yearly class 11 PCMB") print() s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) hybio() print() if stream=='hum': print("Now calculating result for Half Yearly class 11 Humanities") print() s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) hyhum() print() if es=='see': print("Now calculating marks for Session Ending Examination") print() classselect1=int(input("Select the class for which you want to calculate marks")) if classselect1>=1 and classselect1<=5: print("Now calculating result of Session Ending Examination for class",classselect1) print() s1=int(input("Enter the strength of class:")) for j in range(s1): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) ssepri() print() if classselect1>=6 and classselect1<=8: print("Now calculating result of Session Ending Examination for class",classselect1) print() s1=int(input("Enter the strength of class:")) for j in range(s1): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) ssesec() print() if classselect1==9: print("Type hindi for class 9 hindi") print("Type sanskrit for class 9 sanskrit") print() hinskt=input("Enter the subject selection Class 9 hindi/sanskrit") if hinskt=='hindi': print("Now calculating result for Session Ending Examination class 9 hindi") print() s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) sseh9() print() if hinskt=='sanskrit': print("Now calculating result for Session Ending Examination class 9 Sanskrit") print() s3=int(input("Enter the strength of class:")) for j in range(s3): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) sses9() print() if classselect1==11: print("Type pcm for PCM with CS stream") print("Type pcb for PCB with Hind stream") print("Type pcmb for PCMB stream") print("Type hum for Humanities stream") print() stream=input("Select the streams or subject combination") print() if stream=='pcm': print("Now calculating result for Session Ending Examination class 11 PCM with Computer Science") print() s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) ssecs() print() if stream=='pcb': print("Now calculating result for Session Ending Examination class 11 PCB with Hindi") print() s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) sseh() print() if stream=='pcmb': print("Now calculating result for Session Ending Examination class 11 PCMB") print() s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) ssebio() print() if stream=='hum': print("Now calculating result for Session Ending Examination class 11 Humanities") print() s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) ssehum() print() if es=='practical': print("Now calculating marks for Practicals/Internals") print() classselect1=int(input("Select the class for which you want to calculate marks")) if classselect1>=1 and classselect1<=5: print("Now calculating result of Practicals/Internals for class",classselect1) s1=int(input("Enter the strength of class:")) for j in range(s1): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) prpri() print() if classselect1>=6 and classselect1<=8: print("Now calculating result of Practicals/Internals for class",classselect1) print() s1=int(input("Enter the strength of class:")) for j in range(s1): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) prsec() print() if classselect1==9: print("Type hindi for class 9 hindi") print("Type sanskrit for class 9 sanskrit") print() hinskt=input("Enter the subject selection Class 9 hindi/sanskrit") if hinskt=='hindi': print("Now calculating result for Practicals/Internals class 9 hindi") s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) prh9() print() if hinskt=='sanskrit': print("Now calculating result for Practicals/Internals class 9 Sanskrit") s3=int(input("Enter the strength of class:")) for j in range(s3): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) prs9() print() if classselect1==11: print("Type pcm for PCM with CS stream") print("Type pcb for PCB with Hind stream") print("Type pcmb for PCMB stream") print("Type hum for Humanities stream") stream=input("Select the streams or subject combination") if stream=='pcm': print("Now calculating result for Practicals/Internalsclass 11 PCM with Computer Science") s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) prcs() print() if stream=='pcb': print("Now calculating result for Practicals/Internals class 11 PCB with Hindi") s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) prh() print() if stream=='pcmb': print("Now calculating result for Practicals/Internals class 11 PCMB") s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) prbio() print() if stream=='hum': print("Now calculating result for Practicals/Internals class 11 Humanities") s2=int(input("Enter the strength of class:")) for j in range(s2): stn=input("Enter the name of student") rn=input("Enter the roll number of student") print() print("Name:",stn) print("Roll No:",rn) prhum() print() if ch=='3': print("Now you can calculate how much marks required in SEE for passing for Class 11") print("Type pcm for PCM") print("Type pcb for PCB with Hindi") print("Type pcmb for PCMB ") print("Type hum for Humanities") subselect=input("Entering the Stream or subject combination:") if subselect=='pcm': print("Type m for mathematics") print("Type chem for Chemistry") print("Type p for Physics") print("Type cs for Computer Science") print("Type e for English") print("Type all for Every Subject") s=input("Select Subject:") if s=='m': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqmathscs() if s=='e': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqenglishcs() if s=='chem': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqchemistrycs() if s=='p': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqphysicscs() if s=='cs': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqcscs() if s=='all': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqmathscs() print() reqenglishcs() print() reqchemistrycs() print() reqphysicscs() print() reqcscs() print() if subselect=='pcb': print("Type h for Hindi") print("Type chem for Chemistry") print("Type p for Physics") print("Type bio for Biology") print("Type e for English") print("Type all for Every Subject") s=input("Select Subject:") if s=='h': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqhindibioh() if s=='e': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqenglishbioh() if s=='chem': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqchemistrybioh() if s=='p': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqphysicsbioh() if s=='bio': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqbiobioh() if s=='all': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqhindibioh() print() reqenglishbioh() print() reqchemistrybioh() print() reqphysicsbioh() print() reqbiobioh() print() if subselect=='pcmb': print("Type m for Mathematics") print("Type chem for Chemistry") print("Type p for Physics") print("Type bio for Biology") print("Type e for English") print("Type all for Every Subject") s=input("Select Subject:") if s=='m': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqmathsbio() if s=='e': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqenglishbio() if s=='chem': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqchemistrybio() if s=='p': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqphysicsbio() if s=='bio': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqbiobio() if s=='all': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqmathsbio() print() reqenglishbio() print() reqchemistrybio() print() reqphysicsbio() print() reqbiobio() print() if subselect=='hum': print("Type hindi for Hindi") print("Type history for History") print("Type pol for Political Science") print("Type geo for geography") print("Type e for English") print("Type all for Every Subject") s=input("Select Subject:") if s=='hindi': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqhindihum() if s=='e': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqenglishhum() if s=='history': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqhistoryhum() if s=='pol': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqpolschum() if s=='geo': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqgeographyhum() if s=='all': st=input("Enter the name of Student:") rn=input("Enter Roll Number of Student:") print() print("Name:",st) print("Roll No:",rn) print() reqhindihum() print() reqenglishhum() print() reqhistoryhum() print() reqpolschum() print() reqgeographyhum() print()