79644686

Date: 2025-05-29 22:20:30
Score: 1
Natty:
Report link

You need to call global inside the function in order to access the global variable.

def player():
  global health
  health = 100   
player()
print(health)

Output

100
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Adeva1