From 5e97a900f4ffbf4c628a922792e135b6a785a1df Mon Sep 17 00:00:00 2001 From: Kshitij Date: Thu, 7 Dec 2023 16:07:16 +0530 Subject: [PATCH] fixed certain functions, simplified the code and added descrption for certain lines of code. [perfect code] --- assignment-2.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/assignment-2.py b/assignment-2.py index c8187f5..9bea61a 100644 --- a/assignment-2.py +++ b/assignment-2.py @@ -1,3 +1,14 @@ +''' +Problem Statement: Write a Python program to store marks scored in subject “Fundamental of Data Structure” by N students in the class. Write functions to compute following: +a) The average score of class +b) Highest score and lowest score of class +c) Count of students who were absent for the test +d) Display mark with highest frequency + +Code from Data Structure Lab (SPPU - Second Year - Computer Engineering - Content) repository on KSKA Git: https://git.kska.io/sppu-se-comp-codes/DSL +''' + +# BEGINNING OF CODE # List for storing marks marks = [] total = int(input("Total number of students are:\t")) @@ -83,3 +94,4 @@ def main(): else: print("\n\nPlease choose a valid option (1-5)\n\n") main() +# END OF CODE