[Tutor] class newbie
mysecretrobotfactory at gmail.com
Sun Jul 23 16:42:56 EDT 2017
never mind, I forgot to put 'self' in the method definition!
a = mahschool()
On Sun, Jul 23, 2017 at 1:24 PM, Michael C <mysecretrobotfactory at gmail.com>
> class mahschool:
> def print():
> print('Say something')
> a = mahschool()
> With this, I get this error:
> Traceback (most recent call last):
> File "test.py", line 8, in <module>
> TypeError: print() takes 0 positional arguments but 1 was given
> What did I do wrong?
More information about the Tutor