What is the best effective way to get symmetric difference between two strings(in python)?

前端 未结 0 1666
悲&欢浪女
悲&欢浪女 2021-02-11 21:26

Example: If there are two strings:- s1 = \'cde\' s2 = \'abc\'

Output: \'deab\'

I converted the string into a list and compared two lists.

a = \'cde\         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题