Skip to content

Commit ebf702f

Browse files
authored
Update string_rotation.py
1 parent 2d34fc1 commit ebf702f

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)