Reply To: Classes and Objects in Python

Python Land Forums The Python Tutorial Classes and Objects in Python Reply To: Classes and Objects in Python

#1894
Erik van Baaren
Keymaster

I tried it myself to see if I can replicate your problem. What might be happening, is that you copied the class and didn’t hit enter twice after that. If you enter a multi-line statement, function, or class, you need to hit enter twice to finish it.

Hope that helps!