Student Marksheet program in python

In this tutorial, we are going to make a simple student mark sheet or mark list program in a python programming language. using this program a student can enter their Name, Roll Number, University Name, Father’s Name, and marks of their university exam. after that based upon the marks, the program can print the mark sheet of the student that he fails or pass.
Student Marksheet program in python programming language

Introduction to python [Marksheet] program.

To understand this project you need to have some knowledge of python programming. such as how lists work and how to add and delete data from the list and how the print function works in python programming.
 
subject = ["Chemistry", "C programming", "Mathematics",
           "Environment", "Electrical and Electronics", "Machine Engineering"]
subjcode = ["CH-102", "MA-111", "CS-107", "EE-101", "ME-101"]
midmarks = []
semmarks = []
count = MTotal = 0

name = input("Enter your name ")
fname = input("Enter your Father name")
rnumber = input("Enter your Roll number ")
college = input("Enter your college name ")

for x in subject:
    a = int(input("Enter midterm marks for " + x))
    b = int(input("Enter semster marks for " + x))
    midmarks.append(a)
    semmarks.append(b)

print("\n\n\t\t****************************** YOUR RESULT ********************************\n\n")
print("\t\tCOLLEGE: ", college)
print("\n\t\tNAME: ", name, "\t\tFATHER NAME: ", fname)
print("\n\t\tROLL NUMBER: ", rnumber)

print("\n\t\t SUBJECTS \tMARKS1 \tMARKS2 \tTOTAL")

for(x, y, z) in zip(subjcode, midmarks, semmarks):
    print("\n\t\t", x, "\t", y, " \t", z, " \t", y+z)
    MTotal = MTotal + y + z
    if y+z < 44:
        count = count + 1

if count == 0:
    print("\n\t\tTOTAL MARKS: ", MTotal, "\t\tRESULT: PASS")
else:
    print("\n\t\tTOTAL MARKS:", MTotal, "\t\tRESULT: FAIL")
If you are a beginner in python programming then this is a useful project for you. you can either modify this program or use it in your project. also, my suggestion is that you first try to create this project on your own and if you stuck at any point then you can use my code for reference or help.
 
Input
Student Marksheet program in python programming language

Output

Student Marksheet program in python programming language
 

Conditions/Logic for a student to pass the exam

To pass the university exam a student needs to have at least a total of 44 number or marks in all particular subjects including midterm marks and semester marks.
 
Also if a student has 0 marks in the midterm exam and 44 marks in the semester exam then also a student passes the particular subject exam.
 
Example
Student Marksheet program in python programming language
 

Condition/logic for a student to fail in the exam

If a student does not have at least 44 marks in any one subject then he fails. so we need to print the fail in the program.
 
Example
Student Marksheet program in python programming language
 

Explanation of Program

Here in the above program first we define the subjects list in which we define the subject names and then we define a subcode list that consists of subject codes. and then we define the two empty lists midmarks and semmarks and two variables count and MTotal and initialize its values to zero.
[br]
after that, we are taking the input from the user name, fname, number, and college using the input method. after that using for loop we are taking the input for the subject marks and store them in the midmarks and semmarks list using the append method.
[br]
after that using the print method we print the college name, student name, his father’s name, and his roll number. and after that, we are printing the subject code, midterm marks, semester marks, and the total number of marks in a separate line using for loop as you could see in the given above image.
[br]
and using the count variable we are finding that if there is any subject for which the total number of marks is less than 44 then we print the FAIL message on the screen. otherwise, we print the PASS message on the screen.
[br]
Also, read

2 thoughts on “Student Marksheet program in python”

  1. Hello, i think that i saw you visited my weblog so i came to ?return the favor?.I am attempting to find things to improve my website!I suppose its ok to use some of your ideas!!

Leave a Comment