For instance, myList = (['string21', 'string43', 'string65'])
... now I want my result to be this (without [ ] and , ):
'12gnirts 34gnirts 56gnirts'
I've found few examples on how to reverse strings in general but not specific to this problem ... I'm bit confused on how to do a reverse of strings that are in a list.
Below is my code:
reverseEachCharacter = [x[::-1] for x in myList]
print "Result: ", reverseEachCharacter
# prints this:['1gnirts', '2gnirts', '3gnirts']