Guest User

Untitled

a guest
Jul 20th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. test_cases = int(input())
  2. string1, string2 = map(str,input().split(' '))
  3. for x in range (0,test_cases):
  4. list_s1 = list(string1)
  5. list_s2 = list(string2)
  6. new_list1 = sorted(list_s1)
  7. new_list2 = sorted(list_s2)
  8. print(new_list1,new_list2)
  9.  
  10. test_cases = int(input())
  11. string1, string2 = map(str,input().split(' '))
  12. for x in range (0,test_cases):
  13. list_s1 = list(string1)
  14. list_s2 = list(string2)
  15. new_list1 = list_s1.sort()
  16. new_list2 = list_s2.sort()
  17. print(new_list1,new_list2)
Add Comment
Please, Sign In to add comment