when I learned the book called ‘Python Crash Course’, I confronted one problem.
I just typed the code as it was in the book, but it didn’t work.
And It showed that "AttributeError: ‘ElectricCar’ object has no attribute ‘battery_size’ "
I was extremely confused about why that was it.
After looking through the same question on the ‘StackOverFlow’, I knew that I spelled the init( ) wrong. I wrote ini( ) but I didn’t realize that at once.
If you are faced up with the same problem with me, please check your code and make sure that there are no spell and indentation mistakes.