Use return() statement. It is best practices. No need to called called global variable.
return()
global
Script:
def player(): health = 100 return print(health) player()