Write a program to determine if a string S2 is a rotation of anothe string
s1 = input('Enter first string: ') s2 = input('Enter second string: ') if s1 == s2[::-1]: print('s2 is a rotation of string s1')
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment