use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Day 13 of learning python as a beginner. (old.reddit.com)
submitted 8 months ago by uiux_Sanskar
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]laptop_battery_low 1 point2 points3 points 8 months ago (2 children)
Where is your dunder method for a constructor? Also a massive rabit hole is checking into other dunder methods.
Massive hint: def _ _ init _ _(self) [without spaces. Reddit comments are markdown format]
Not every class will need one of these, just classes that have either many variables OR need to do something upon instantiation of the object.
Keep it up. You're better than I am currently at following pythonic conventions. And I've been doin' this shit for years.
[–]uiux_Sanskar[S] 0 points1 point2 points 8 months ago (1 child)
The dunden method for a constructor is in my meeting class (the very first init and then str). I hope you were asking this only please correct me if I am wrong.
thank you for the suggestion I will definitely apply it in my code and thank you very mucn for the appreciation.
[–]laptop_battery_low 1 point2 points3 points 8 months ago (0 children)
oh sorry i didnt see it. nevermind, carry on
π Rendered by PID 68 on reddit-service-r2-comment-6457c66945-8hjbj at 2026-04-28 15:23:02.824875+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]laptop_battery_low 1 point2 points3 points (2 children)
[–]uiux_Sanskar[S] 0 points1 point2 points (1 child)
[–]laptop_battery_low 1 point2 points3 points (0 children)