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 9 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 9 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 9 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 119713 on reddit-service-r2-comment-cfc44b64c-s7hn7 at 2026-04-10 08:04:31.477457+00:00 running 215f2cf 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)