First, a general tip: in Python you don't have to write foo_t[len(foo_t)-1]. You can just write foo_t[-1]and Python will go right.
To answer your question, you can do:
for foo in reversed(foo_t):
print foo,
print
or
print ' '.join(map(str, reversed(foo_t))
In Python 3, it is simple:
print(*reversed(foo_t))
source
share