this isn't pythonic at all. you should rely on duck typing instead of checking for data type. let the __mul__ method raise an error instead of doing this, since returning None when the types aren't what you expect can lead to a lot of unexpected behavior.
Expected username is all lowercase, your username is N uppercase
this isn't pythonic at all. you should rely on duck typing instead of checking for data type. let the
__mul__
method raise an error instead of doing this, since returningNone
when the types aren't what you expect can lead to a lot of unexpected behavior.