+ 4
Why isnt this Python OOP not working for me? - Python
Code: https://code.sololearn.com/ciakEQT93Z64/?ref=app I want it to output the def, Note then output the names, Sincerely, I cannot add the names, itâll do a Error.
2 Answers
+ 2
your note function should take self not s1 as an argument,
animal takes 3 argument.
one random.choice is enough. you are adding 3 + < which is impossible
0
@line 16 instead of
print(Animal(). Notes()...
Use
print(Aww.Note().....
Since you are declaring Animal without its required attributes