Skip to content
  • Home
  • Contact Us
  • About Us
  • Privacy Policy
  • DMCA
  • Linkedin
  • Pinterest
  • Facebook
thecscience

TheCScience

TheCScience is a blog that publishes daily tutorials and guides on engineering subjects and everything that related to computer science and technology

  • Home
  • Human values
  • Microprocessor
  • Digital communication
  • Linux
  • outsystems guide
  • Toggle search form

Student Marksheet program in python

Posted on April 23, 2021February 19, 2023 By YASH PAL No Comments on 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

Table of Contents

  • Introduction to python [Marksheet] program.
    • Conditions/Logic for a student to pass the exam
    • Condition/logic for a student to fail in the exam
      • Explanation of Program

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.

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.

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.

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.

Also, read
  • Student marksheet program in C Programming
project, python Tags:engineering subjects, python

Post navigation

Previous Post: Cloud Computing Characteristics
Next Post: Add an Custom Snippet for Javascript in Visual Studio Code

Related Posts

computer memory hierarchy in computer Computer Memory Hierarchy and Characteristics computer fundamentals
Universal Human Order engineering subjects
Introduction to MicroProcessor engineering subjects
Understanding the Body as an Instrument of I engineering subjects
Commercial Impact of Internet on Society | Digital communication Digital communication
changing file access permissions in linux Changing File Access Permissions in Linux engineering subjects

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Pick Your Subject
Human Values

Copyright © 2023 TheCScience.

Powered by PressBook Grid Blogs theme