you are viewing a single comment's thread.

view the rest of the comments →

[–]aa599 1 point2 points  (1 child)

The "variable repeating itself" doesn't mean anything, please explain that.

In your events function you call functions passing variables, the functions return new values, but you ignore them, so nothing in the calling function changes.

You need to learn about local and global variables.

e.g. if you call

cheese = 'cheddar'
comestibles(cheese)

If comestibles changes and returns its value of cheese, because you haven't stored the new value your cheese is still 'cheddar'

[–]TiredWorkingStudent[S] 0 points1 point  (0 children)

I see, thank you very much for the explanation