Selfstudents Students Def Str Self Return Format Selfname Selfstudents C1 Uniclass Cs101 1 Q37290519

Can someone help me solve question number 3 and 4 using Classin Python? Appreciate.
self.students students def str(self): return .format (self.name, self.students) c1 - Uniclass(CS101, 10) c2 Uniclass (CS2c1 Uniclass (CS101, 10) e2 . Un iClass (CS201, 6) (2 points each) 1. What is the value of c1.students? 2. What is the valul Add method add student described above t Add method decrement student as described above. 4. Create an instance of your claself.students students def str(self): return “.format (self.name, self.students) c1 – Uniclass(“CS101”, 10) c2 Uniclass (“CS201”, 6) (2 points each)

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.