MARK SHEET

                                              MARK SHEET  

 Today, i have created a marksheet program using python.

         Here is the video about it .           

 
 
 
 
HERE IS THE CODE SNIPPET:print ("********* Mark Sheet **********")
def mark_sheet_fun():
    
    Name = input("Enter your name :")

    Maths = float(input("Enter your maths mark :"))
    English = float(input("Enter your english mark :"))
    Tamil = float(input("Enter your tamil mark :"))
    Social = float(input("Enter your social mark :"))
    Science = float(input("Enter your science mark :"))
    subject_marks =[Maths,English,Tamil,Social,Science]

    Total_marks = Maths+English+Tamil+Social+Science

    average = Total_marks/5

    if  average  > 90 :
        grade = "A+"    
    if  average > 80 and average < 90:
        grade = "A"  
    if  average  > 70 and average < 80 :
        grade = "B"

    res = "PASSED"
    for marks in subject_marks:
        if marks < 50 :
            res = "FAILED"
            grade = "No Grade"



    print("********************************************************************************************")

    print("Name | Total | Average|  Grade | Result  ")
    print( Name ,"\t",Total_marks,average ,"\t", grade ,"\t", res)
    print("********************************************************************************************")
mark_sheet_fun()

Here the code works like, First it will  ask your name after that after that your mark. If one subject mark was below means the computer would print failed passed means passed.                              

 

Comments