0

Type Error: Animal() takes no argument

anytime i create an object in a class in python an error of ’() takes no argument occurs’

10th May 2020, 5:07 PM
Kwabena
1 Odpowiedź
0
Depending on how the Animal class is defined, you are allowed (or required) to specify parameter values or not at the time of creating it. Could you show a code example with the error?
10th May 2020, 5:46 PM
Lisa
Lisa - avatar