fixed certain functions, simplified the code and added descrption for certain lines of code. [perfect code]
This commit is contained in:
parent
6cbcb483c7
commit
5e97a900f4
@ -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
|
# List for storing marks
|
||||||
marks = []
|
marks = []
|
||||||
total = int(input("Total number of students are:\t"))
|
total = int(input("Total number of students are:\t"))
|
||||||
@ -83,3 +94,4 @@ def main():
|
|||||||
else:
|
else:
|
||||||
print("\n\nPlease choose a valid option (1-5)\n\n")
|
print("\n\nPlease choose a valid option (1-5)\n\n")
|
||||||
main()
|
main()
|
||||||
|
# END OF CODE
|
||||||
|
Loading…
Reference in New Issue
Block a user