Advertisement
KodingKid

Python Student Counter (With naming and grading system)

Apr 5th, 2021
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. class Students:
  2.     studentCount = 0
  3. def __init__(self, name, grades)
  4. self.name = name
  5. self.grades = grades
  6. Students.studentCount += 1
  7. def displayCount(self):
  8.      print "Total Student %d" % Students.studentsCount
  9. def displayStudents(self):
  10.       print "Name : ", self.name,  ", Grades: ", self.grades
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement