variabel global python unboundlocaleRror

#You must annouce a variable as global
function_uses = 0

def function():
  #To do that type this:
  global function_uses
  #global <var>
  print('This is a function')
  function_uses += 1
Helpless Herring