Student Marksheet program in python YASH PAL, April 23, 2021November 21, 2024 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. 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. "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 Output Student Marksheet Program 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 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 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. 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 take the input for the subject marks and store them in the midmarks and semmarks list using the append method. after that using the print method we print the college name, student name, his father’s name, and his roll number. after that, we print the subject code, midterm marks, semester marks, and the total number of marks in a separate line using a for loop as you can see in the above image. 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 will print the PASS message on the screen. Also, read Student marksheet program in C Programming project python engineering subjectspython