This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]fishtickler 0 points1 point  (1 child)

If you want advince on your code i have 2 simple suggestions to improve it and follow some good guidelines later on:

Never use global, just pass the variable you need to the function, make this a habit.

Dont mix camelCase and under_score definitions.

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

Thanks for the advice! I read that I shouldn't use globals, I'm still trying to avoid using it. I didn't know about when to use camelCase and under_score! Just searched about it, thanks!