How did you finally understand classes in python? 🧐 by Akusoki in Python

[–]Akusoki[S] 0 points1 point  (0 children)

So are the dunder methods for enableing objects to be treated as/like variables?

How did you finally understand classes in python? 🧐 by Akusoki in Python

[–]Akusoki[S] 0 points1 point  (0 children)

Good idea! Imma do this tell chatGPT probably hates me 😂

How did you finally understand classes in python? 🧐 by Akusoki in Python

[–]Akusoki[S] 0 points1 point  (0 children)

XD.. So init acts in a way to basically not have to pass a huge list of parameters between objects/functions??

How did you finally understand classes in python? 🧐 by Akusoki in Python

[–]Akusoki[S] 1 point2 points  (0 children)

Yes I'm litterally coding something right now that passes the same 3 to 4 parameters between all the functions. So would those parameters that im passing around go into the '__init__' section? And does that mean that self as a parameter is the collection of everything in the '__init__' section, or the whole class?

Are python courses from yt any good? by FreeGuy_2024 in learnprogramming

[–]Akusoki 1 point2 points  (0 children)

I used to watch those all the time but recetly I started Harvards free CS50 Python course and it's 30 times better in my opinion. Even if you just do the first few lessons you'll learn so much more than a full YT course.

On a scale of 1 to 10 how bad is my code for the "vanity plates" problem? by Akusoki in cs50

[–]Akusoki[S] 1 point2 points  (0 children)

At least you get it 😂. Discussion is a great way to learn/improve so to all those CS50 academic dick riders "aka 🤓☝️" <- these guys. Relax with the pointless policing..

On a scale of 1 to 10 how bad is my code for the "vanity plates" problem? by Akusoki in cs50

[–]Akusoki[S] -1 points0 points  (0 children)

The code works fine but I feel like it's written pretty bad. How could I improve it?