Dec-15-2021, 10:51 AM
jc4d Wrote:I noticed you have a pass statement at the end of the class, is that necessary?No it is not necessary. I wrote the 'pass' in order to give a non empty body to the class definition. A better idea is to write a docstring
>>> class A: ... """This class does nothing""" ... >>>The class body can only contain return statements in the method's definition.