I’ve just become half decent at functions but still struggle with classes. I’ve got a couple working mostly with chatgpt help.
-
How would you explain the difference to a 5 year old?
-
How do you know when you’ll need to use a function over a class?
-
How do you know when you’ll need a class over a function?
-
Do you usually start building functions and then later realise “Oh I can bundle these into a class to make life easier in the future.” ? (I do)
Thanks in advance to anyone that answers.
submitted by /u/tylerdurden4285
[link] [comments]
r/learnpython I’ve just become half decent at functions but still struggle with classes. I’ve got a couple working mostly with chatgpt help. How would you explain the difference to a 5 year old? How do you know when you’ll need to use a function over a class? How do you know when you’ll need a class over a function? Do you usually start building functions and then later realise “Oh I can bundle these into a class to make life easier in the future.” ? (I do) Thanks in advance to anyone that answers. submitted by /u/tylerdurden4285 [link] [comments]
I’ve just become half decent at functions but still struggle with classes. I’ve got a couple working mostly with chatgpt help.
-
How would you explain the difference to a 5 year old?
-
How do you know when you’ll need to use a function over a class?
-
How do you know when you’ll need a class over a function?
-
Do you usually start building functions and then later realise “Oh I can bundle these into a class to make life easier in the future.” ? (I do)
Thanks in advance to anyone that answers.
submitted by /u/tylerdurden4285
[link] [comments]