Coding Blocks IDE

I’m designing a code on python using objects and classes. The software I’m using is Spyder Editor.
I’m unable to understand the errors in this code. Can someone correct the code for me?