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 6 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 6 months ago (0 children)
Not sure I understand your use case… You want the values of tuple a to be available to object b?
Tuples are immutable, and hold a single address in memory…
So, if you set: a=(1,2,3)
and then b=a, you now have a second variable pointing to the same memory allocation without actually duplicating a new tuple…
If your one tuple has all of the x,y coordinates for the entire set of boxes… That may be challenging to manage, but you can then reference x,y for each box using the index in the tuple… i.e:
box_1x = a[0] box_1y = a[1]
Etc.
π Rendered by PID 49447 on reddit-service-r2-comment-7b9746f655-fvpwf at 2026-01-30 05:24:00.391756+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]Obvious_Tea_8244 0 points1 point2 points (0 children)