Skip to content

Commit 08fcc69

Browse files
Merge pull request #859 from yash-odint/master
Example added to String Roatation Program
2 parents 3bd7ef5 + ebf702f commit 08fcc69

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

string_rotation.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#This program rotates a given string letters by letters
2+
#for example:
3+
#input: "Tie"
4+
#Output: ["ieT", "eTi"]
5+
16
def rotate(n):
27
a = list(n)
38
if len(a) == 0:

0 commit comments

Comments
 (0)