x = 'yellow'
print(sorted(x))
returns
['e', 'l', 'l', 'o', 'w', 'y']
What I want it to return
ellowy
How ran I make it return 'ellowy' without the letters being in a list?
x = 'yellow'
print(sorted(x))
returns
['e', 'l', 'l', 'o', 'w', 'y']
What I want it to return
ellowy
How ran I make it return 'ellowy' without the letters being in a list?