line 12 is an error, if you want to change a global variable you have to define it as global into the function
https://docs.python.org/3/faq/programming.html#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value
There are too many errors here
Try adding "global Vida" inside atacar()
i mada it ty
Обсуждают сегодня