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

前端 未结 0 2021
猫巷女王i
猫巷女王i 2021-02-11 21:07

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\         


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