Can someone explain to me what's going on? Because I don't know and I'm new, it's a youtube course, that's what he did with that get and set method. Thank you
Python is very picky about indents (when you hit tab you are generating an indent). So, you have defined your functions inside the init function. The solution is very simple, delete and adjust the indentations (which I have done for you and now I will pass you the code).
Brief explanation
In python the init () function is used to initialize classes. Within that function, the arguments can be passed to a property of its own.
Python is very picky about indents (when you hit tab you are generating an indent). So, you have defined your functions inside the init function. The solution is very simple, delete and adjust the indentations (which I have done for you and now I will pass you the code).
Code