Mini-Project: Student Report Card

1 min read
What I Did Today
Built a Student Report Card mini-project in Python.
Practiced:
Taking user input.
Using dictionaries to store data.
Using loops to display data.
Calculating averages.
Applying if-elif-else conditions for grading.
💻 My Code
name = input("Enter your name: ")
subject1 = input("Enter subject 1 name: ")
marks1 = int(input(f"Enter marks for {subject1} /100: "))
subject2 = input("Enter subject 2 name: ")
marks2 = int(input(f"Enter marks for {subject2} /100: "))
subject3 = input("Enter subject 3 name: ")
marks3 = int(input(f"Enter marks for {subject3} /100: "))
Report_card = {}
Report_card["name"] = name
Report_card[subject1] = marks1
Report_card[subject2] = marks2
Report_card[subject3] = marks3
print("""---Report Card---""")
for key, value in Report_card.items():
print(f"{key}: {value}")
average_marks = float((marks1 + marks2 + marks3) / 3)
print(f"Average marks: {average_marks:.2f}")
if average_marks >= 80:
print("Remarks: Excellent")
elif average_marks >= 60:
print("Remarks: Good Job")
else:
print("Remarks: Need Improvement")
🧠 Key Learnings
How to structure real-world programs with input, processing, and output.
Better understanding of dictionaries and loops.
Handling calculations and conditions cleanly.
0
Subscribe to my newsletter
Read articles from kasumbi phil directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
