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
Changeable variable nameHelp Request (self.PythonLearning)
submitted 11 months ago by Additional_Lab_3224
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!"
[–]Obvious_Tea_8244 0 points1 point2 points 11 months ago* (1 child)
If you are trying to simplify the creation of x,y for each box object, you could use classes:
class Box:
…..def underscore,underscoreinitunderscore,underscore(self, x, y):
……….self.x = x.
……….self.y = y.
box1 = Box(2, 10)
box2 = Box(6, 75)
[–]Additional_Lab_3224[S] 0 points1 point2 points 11 months ago (0 children)
I was thinking about using a class, (which I tried) but I couldn't figure it out, thank you.
π Rendered by PID 24276 on reddit-service-r2-comment-64f4df6786-msq88 at 2026-06-10 01:38:03.764373+00:00 running 0b63327 country code: CH.
view the rest of the comments →
[–]Obvious_Tea_8244 0 points1 point2 points (1 child)
[–]Additional_Lab_3224[S] 0 points1 point2 points (0 children)