I understand the concepts of class, methods and instances, but the code themselves are hard to understnad.
If i wrote the codes like unit 1 or 2, they would include more fucntions and loops. That is what I am confortbale with.
OOP seems to super efficient and writing the codes as they are can be more organized, I do think I am at the level to write them as the Yahtzee game.
When writing docstrings, I had to think deeper about what is happening at each line of the code and how it effects the final result.
Some methods had choices, so I had to run through how they made a choice.
When writing code, I have to also go bit by bit, but actually write out the code to make it work, rather than just "walking through it" when writing the docstrings.
Yes! I think it is helpful, especaily for longer codes. It can get a bit too much when there is a lot going on, so having doscstrings can help organize!
You can use Classes to simmulate many experiments. Just as we used it to roll dice, we could also simulate randomizer picking numbers to then do something with.
You could flip coins and then have outcomes such as "three heads in a row". You can also use it to simulate shuffle a deck of cards and have it simulate giving them out.