I have Victory, Draw, Lose variables for a hockey game. Obviously, based on the final result of a game, only one of these variables will be True. For this reason I created them inside a try and except: pass.

Now I would like to print only one of these variables (the True one, for example Victory, because Victory becomes True based on a scraping of the results of the hockey match), but I get the error `UnboundLocalError: local variable 'Victory' referenced before assignment` when I search to print the True variable, because Victory was already named before the assignment. Given the simplicity of the problem, I report only the part useful for the resolution:

Maybe I shouldn't use a list

```
#scraping and assignment of Point_Team_A and Point_Team_B
...

try:
    Victory = Point_Team_A > Point_Team_B 
    Draw = Point_Team_A == Point_Team_B
    Lose = Point_Team_A < Point_Team_B
except:
    pass

result=[Victory, Draw, Lose] #great problem is here

print (*filter(None, result), sep='\n') #and here

```

For example if the result is a Victory, I want to get the **output**: `Victory`

NOTE: I use try / except because only one (1) variable will be True between Victory, Draw, Lose. The two False variables will be recognized as an error, because I previously created Point\_Team\_A and Point\_Team\_B inside an if / else condition. Subsequently I use Point\_Team\_A and B to create the 3 variables above. For example, if the result of a hockey match is 7-3, it means that team A has won, because Victory = Point\_Team\_A> Point\_Team\_B. Consequently Draw and Lose will be recognized by Python as an error, for this use try / except.