Thanks all for the answers.

Oscar Benjamin <oscar.j.benja...@gmail.com> wrote:

>>>> print(('{}th\n' * len(a)).format(*a))
>>>> print(''.join(map('{}th\n'.format, a)))

Those two look closest to what I was hoping for, I guess, but as Chris 
Angelico said, it probably is clearer to just loop over the range.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to