Nums = ['1', '2', '3', '4']
print(str('\n'.join(Nums)) + 'XXX')
Currently this returns
1
2
3
4XXX
I'd like to get the code to return xxx
after each number rather than after only the last! Is there a way to process each one of these individually so it prints each entry in Nums + XXX
?
Example:
1XXX
2XXX
...
Thanks!