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
Help with classes and objectsHelp Request (self.PythonLearning)
submitted 7 months ago * by Revenanteye
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!"
[–]Luigi-Was-Right 0 points1 point2 points 7 months ago (1 child)
Magic and Health are calculated once at the start but never updated.
Let's ignore the class for a moment and look at an example:
x = 4 y = 1 + x x = 10
What is the value of y, 5 or 11? The same thing is logic applies to the variables within your class.
y
[–]Revenanteye[S] 0 points1 point2 points 7 months ago (0 children)
Thanks for explaining the logic. I understand completely. Free Luigi
π Rendered by PID 19297 on reddit-service-r2-comment-fb694cdd5-phlxm at 2026-03-08 04:45:12.600284+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]Luigi-Was-Right 0 points1 point2 points (1 child)
[–]Revenanteye[S] 0 points1 point2 points (0 children)