- 2
Python class eg
Replace class body with expected behaviour print('Hello world!') class Stud: pass a = Stud() print(a.rollNo) #1 b = Stud() print(b.roll) #2 #and likewise for n students should print n #replace class body such that for all students it returns correct roll no
1 Odpowiedź
0
Is this supposed to be a tutorial or example code? If so, it should be posted in the code tab for others to run and review.