diff options
Diffstat (limited to 'progs/a270.py')
-rw-r--r-- | progs/a270.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/progs/a270.py b/progs/a270.py new file mode 100644 index 0000000..02c486c --- /dev/null +++ b/progs/a270.py @@ -0,0 +1,11 @@ +def are_Rotations(string1,string2):
+ size1 = len(string1)
+ size2 = len(string2)
+ temp = ''
+ if size1 != size2:
+ return False
+ temp = string1 + string1
+ if (temp.count(string2)> 0):
+ return True
+ else:
+ return False
\ No newline at end of file |