r/learnpython • • Feb 20 '21

What are you having difficulty learning or are currently struggling to learn?

I'm curious what the community here has difficulty with when it comes to learning Python. Partly because I want to see if the more experienced community here (or myself) can help point you into the right direction. . . but also because I'm trying to come up with video tutorial ideas for future content and would love to hear from Python learners what would be most useful to dedicate our time on.

I'm looking forward to hearing what you guys have to say!

417 Upvotes

324 comments sorted by

View all comments

3

u/seanpaul9000 Feb 20 '21

Trying to understand oop/ classes right now. I watched all of Corey Schaffer’s series and a tech with Tim tutorial... still was a bit confused. Restarted Corey’s series and things are starting to slowly click.

Would love to find a good project to work on to help me understand but not sure if I could actually do one solo dolo yet

2

u/Ne0_1 Feb 22 '21

Check out MIT OCW. Look up class 6.00SC and the problem sets 6, 7, and 8 are great projects for oop. The instructions for these problem sets tell you everything you need to know and they include all code you need to get setup and going. A great way to incorporate the Monte Carlo Simulation technique. Basically using an approach of randomness to solve non-random problems. If you want to be a data scientist or data engineer there are a bunch of useful concepts here.

1

u/MaraudingAvenger Feb 20 '21

We did a thingy where we created RPG characters -- it was a mess but it was fun! You could do something similar -- think how you'd design them, use them, etc, and then make a couple of them fight in a while loop until one wins!

2

u/seanpaul9000 Feb 22 '21

I’m trying that now! One thing I’m confused about is whether I create a class for player1 and a computer opponent, or if I just create classes for the types of fighters (archer, swordsmen, mage)... or possibly both? Lol

1

u/MaraudingAvenger Feb 22 '21

My advice is to start with a PunchMan class that can... punch. When you're done with the PunchMan class, make two of them and fight them against each other in a while loop.

Once you've done that, complicate the hell out of it and make swords, armor, stats like strength, constitution, dexterity, etc. Building from a working start will let you iteratively add things and see how it breaks (and then fix those things for future iterations)!

2

u/seanpaul9000 Feb 22 '21

Thank you for your swift reply

1

u/MaraudingAvenger Feb 22 '21

All good! Happy coding!!