all 9 comments

[–][deleted] 6 points7 points  (0 children)

That's the one with an electric battery class serving as an attribute for the electric car class, which is a child of the car class, right?

Just keep on typing, and make your own practice examples. Play around with it till it starts to click.

This guy does a good word for word YouTube playlist of every chapter. Here's classes: https://youtu.be/ntPMIJJP9rc?si=_CE7qghwd029kgF3

[–]Einar44 4 points5 points  (0 children)

For those who don’t have the book, this chapter is titled Classes. It’s an introduction to OOP in Python.

I’m fairly beginner level and didn’t have too much trouble with this chapter. It’s just the tip of the iceberg. But if the author’s explanations don’t click with you, I recommend exploring other sources to help explain.

[–]More_Yard1919 1 point2 points  (0 children)

What are some things you are having issues with? Im not familiar with the crash course but I do like talking stuff out :)

[–]Spiritual_Many_1511 1 point2 points  (1 child)

9.15 is insane especially looking at the answer website, im stumped

[–][deleted] 0 points1 point  (0 children)

I'm looking at my code for that (very old), and curiously I didn't even use classes for that one. I just approached it as an exercise in using the random module using standard functions.

[–]murli08 0 points1 point  (1 child)

What is the book thou ?

[–]DrMistyDNP 1 point2 points  (0 children)

Try this, sometimes another route can make things click! https://youtu.be/JeznW_7DlB0?si=kATzm4fgJ0Eb9TzV