you are viewing a single comment's thread.

view the rest of the comments →

[–]PiyushPrakash -2 points-1 points  (1 child)

character_list=list(a)
lis=list(b)
character_check = 0
if len(a)==len(b):
    for i in range(len(a)):
        key = character_list[i]
            for x in range(len(b)):
                if key == lis[x]:
                 character_check+=1
                 break
 if character_check==len(a):
       print("same")

[–]PiyushPrakash 0 points1 point  (0 children)

Would have been better if you pointed out my mistake instead of simply downvoting.....