a. Write a python script to take two string S1 and S2 and do the following:
i) Check S1 and S2 are anagrams or not.
ii) Check S1 is Sub string of S2 or not.
iii) S1 is palindrome or not
s1=raw_input("Enter first string:")
s2=raw_input("Enter second string:")
if(sorted(s1)==sorted(s2)):
print("The strings are anagrams.")
else:
print("The strings aren't anagrams.")
Comments
Leave a comment