Oct-19-2023, 06:07 AM
(This post was last modified: Oct-19-2023, 01:19 PM by deanhystad.)
Hi,
New to python and doing a course by Mosh. I have a tutorial with the following code that will NOT work no matter what I do.
PS the error is :
New to python and doing a course by Mosh. I have a tutorial with the following code that will NOT work no matter what I do.
class Animal: class Mammal(Animal): m = Mammal () print (isinstance(m, Mammal)) print (isinstance(m, Animal))The output should be a boolean. Can someone point out what Im missing please?
PS the error is :
Error:File "/Users/mark/PycharmProjects/complete python mastery/main.py", line 1191
class Mammal(Animal):
^
IndentationError: expected an indented block after class definition on line 1189
Process finished with exit code 1
deanhystad write Oct-19-2023, 01:19 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.