Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sort lexo python

#code
def sortlexo(n):
    w = []
    for i in n:
        w.append(i)
    
    w.sort
    w = w[::-1]
    for i in w:
        print(i,end = "")
for i in range(int(input())):
    n= input()
    sortlexo(n)
 
PREVIOUS NEXT
Tagged: #sort #lexo #python
ADD COMMENT
Topic
Name
1+6 =