This question already has an answer here:
- Why is Global State so Evil? 17 answers
Hey so i was wondering which is the more efficient way, or better practice to do in this situation.
def function(): global number number += 2
def function(number): return number += 2