summaryrefslogtreecommitdiff
path: root/progs/a972.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a972.py')
-rw-r--r--progs/a972.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/progs/a972.py b/progs/a972.py
new file mode 100644
index 0000000..b158656
--- /dev/null
+++ b/progs/a972.py
@@ -0,0 +1,8 @@
+def find_Rotations(str):
+ tmp = str + str
+ n = len(str)
+ for i in range(1,n + 1):
+ substring = tmp[i: i+n]
+ if (str == substring):
+ return i
+ return n \ No newline at end of file