Sorting the letters of a one worded string in Python?

Viewed 2693
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?

4 Answers
Related