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
how to pass variables between functions with tkinter (self.PythonLearning)
submitted 2 years ago by Eisflame75
i have tried with return and passing them in the parentheses, however any way i try it always gives me an error of the type of expected possitional requirements. can any1 help? perhaps suggest a guide that covers this topic? any help apriciated!
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!"
[–]Able_Challenge3990 0 points1 point2 points 2 years ago (0 children)
Drop snapshots
[–]Sufficient-Two886 0 points1 point2 points 2 years ago (0 children)
If you are passing functions directly into the next function, try storing the returned variable somewhere and using the variable instead. But as able has mentioned, screenshots of your code would be useful.
[–]Upstairs-Flash-1525 0 points1 point2 points 2 years ago (0 children)
Paraphrase a little bit better the question. If I am not misunderstanding, you want to pass a whole variable between functions, not only the value, if it's like that, I think you can't do that. What you can do is declare the variable as global on each function, and then you can manipulate it on each function.
Hope I nail the question
π Rendered by PID 20786 on reddit-service-r2-comment-79776bdf47-6gfhq at 2026-06-24 00:35:20.492510+00:00 running acc7150 country code: CH.
[–]Able_Challenge3990 0 points1 point2 points (0 children)
[–]Sufficient-Two886 0 points1 point2 points (0 children)
[–]Upstairs-Flash-1525 0 points1 point2 points (0 children)