Check Your Marksheet Using Python || CodexRitik

Hello Guys this program is created using Python Language.In this Program You can See Your Marksheet.This is a basic View.

For Run this program Please Copy all Code wriiten Below And Paste Your Python Compiler.

Total_Mark=100
#Wriiten By CodexRitik
State_Name=input("Enter Your State:")
print("Hint : Enter Roll Code and Roll no. Maximum 16 Digit")
rc=int(input("Enter Your Roll Code: "))
s=len(str(rc))
for _ in range(1):
    if(s>16):
        print("Envalid Roll Code.Please Try Again!")
        break
    rn=int(input('Enter your Roll No: '))
    s1=len(str(rn))
    for _ in range(1):
        if(s1>16):
            print("Envalid Roll No.Please Try Again")
            break
        lii=[];li1=[]
        Name=input("Enter Your Name : ")
        lii.append(Name)
        D_O_B = input("D.O.B : ")
        lii.append(D_O_B)
        li1.append(rc)
        li1.append(rn)
        lnn=len(Name)+len(D_O_B);ln2=len(str(rc))+len(str(rn));ll=lnn-ln2
        Father_name=input("Father Name : ")
        Mother_name=input("Mother Name : ")
        Religion=input("Religion : ")
        Nation=input("Nationality: ")
        Year=int(input("Exam Year : "))
        n=int(input("Enter the no. of Main subject: "))
        n1=int(input("Enter the no. of Extra subject: "))
        Subject_list=[];Marks_list=[];le=18;String='';Extra=[];Ext_M=[]
        for i in range(n):
            Subject=input("Subject Name:")
            l1=len(Subject)
            c=le-l1
            if (l1 < le):
                String = Subject + (" ") * c
                Subject_list.append(String.title())
            Obtained_Mark = int(input("Marks:"))
            Marks_list.append(Obtained_Mark)
        if(n1>0):
            for _ in range(n1):
                Subject = input("Extra Subject Name:")
                l1 = len(Subject)
                c = le - l1
                if (l1 < le):
                    String = Subject + (" ") * c
                    Extra.append(String.title())
                Obtained_Mark = int(input("Marks:"))
                Ext_M.append(Obtained_Mark)
        else:
            pass
        Total=sum(Marks_list)
        list2=['Subject','Total Marks','Marks Obtained']
        r=n*30;Result="Fail";Result1="Pass";RES='';Grad=''
        div='1Div';div1='2Div';div2='3Div';div3="No Rank"
        r1=60*n;r2=45*n;r3=30*n
        resu='';rrr="Reason : Your Mark Below 30 in ";rr1="Best Of Luck"
        percentage=Total/n
        print("_"*65)
        print("_"*65)
        print((" ")*5+State_Name.title()+" "+"School Examination Board Result"+' '+str(Year)+(" ")*5)
        print("Student Information: ")
        for ii in range(1):
            print("Name:",lii[0].title()+(" ")*10+"D.O.B:",D_O_B)
            print("Roll Code:",li1[0],(" ")*ll+"Roll No:",rn)
        print("Father's Name:",Father_name.title()+(" ")*5+"Mother's Name:",Mother_name.title())
        print("Religion:",Religion.title()+(" ")*5+"Nationality:",Nation.title())
        print("Mark's Details: ")
        for m in range(len(list2)):
            print(list2[m]+(" ")*10,end=' ')
        print( )
        for j in range(len(Subject_list)):
            print(Subject_list[j],(" ")*4,Total_Mark,(" ")*15,Marks_list[j])
        print("Extra Subject Details:")
        for h in range(len(Extra)):
            print(Extra[h],(" ")*4,Total_Mark,(" ")*15,Ext_M[h])
        print("Total Marks:",Total)
        if (Total >= r1):
            Grad = div
        if (Total < r1 and Total > r2):
            Grad = div1
        if (Total < r2 and Total > r3):
            Grad = div2
        if (Total < r3):
            Grad = div3
        for ff in range(len(Marks_list)):
            if(Marks_list[ff]<30):
                RES=Result
                Grad=div3
                resu=rrr+" "+Subject_list[ff]
                break
            else:
                RES = Result1
                resu=rr1
        print("Result:",RES,(" ")*4,"Divison:",Grad)
        print("Total Percentage:","%.2f"%percentage,resu)
        print("_"*65)
        print("_"*65)





🙏Thanks For Visit My Blog🙏







Check Your Marksheet Using Python || CodexRitik Check Your Marksheet Using Python || CodexRitik Reviewed by CodexRitik on June 13, 2020 Rating: 5

No comments:

Powered by Blogger.