Write a program to print the following,
Input
The first line of input contains a string S.
The second line of input contains a string T.
Sample Input1
abc
acb
Sample Output1
Yes
Sample Input2
aabb
bbaa
Sample Output2
No
def check_string(str1, str2):
if sorted(str1) == sorted(str2):
return 'Yes'
else:
return 'No'
check_string('acb', 'abc')
'Yes'
Comments
Leave a comment