I don't know if you define Y previously in your code project but from the included code, the most glaring error here is: you are asking
if X == Y
and you aren't specifying
Y
before hand.
So basically; if variable equal to undefined variable, execute below code:
print('[Nation] Rome has taken over Gaul')
print ('[Nation] Gaul has fallen into ruins.'):
else:
print 'Gaul has defeated Rome'
However, how often is anything getting printed? It would be pretty unfortunate if you were getting false positives.... i.e. your y variable accidentally equals x and gives the intended positive return of program execution at sporadic times.
Perhaps defining y before hand would take away any ambiguity for us.
i.e.
y = f[0]
x = raw_input('[Rome] ---> [y/n]')
if x == y:
print '[Nation] Rome has taken over Gaul'
print '[Nation] Gaul has fallen into ruins.'
else:
print 'Gaul has defeated Rome'