How can I effectively learn Object-Oriented Programming with Python?

0
4
Asked By CuriousPanda92 On

I'm looking for advice on mastering Object-Oriented Programming (OOP) in Python. I've already dabbled in Java but have decided to fully commit to Python, and I'm finding it tough to grasp OOP concepts. Specifically, I'm struggling with linked lists, trees, and I've heard that understanding graphs and dynamic programming requires a solid knowledge of OOP as well. I'm hoping to find some effective methods or resources to help me improve my skills in this area.

2 Answers

Answered By TechSavvyLynx On

I suggest tackling LeetCode problems that focus on your weak spots. Since you've experimented with OOP in Java, you might just need to translate that knowledge into Python. For resources, check out BroCode on YouTube; he has some great videos tailored to OOP that could really help you out!

CuriousPanda92 -

Will look into that, thank you!

Answered By DataNinja77 On

It's important to note that linked lists, trees, graphs, and dynamic programming can be implemented in any programming language, not just through OOP. They usually fall under a CS domain known as algorithms and data structures. You might be mixing concepts because, in Python, classes are often used to represent various data structures, which isn't inherently tied to OOP principles.

CuriousPanda92 -

I didn't understand why we use a class and init when functions exist. I'm really struggling to grasp the role it plays, especially since creating nodes is necessary in trees and linked lists. Can you recommend resources or methods to help clarify these principles?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.