Skip to content

Commit bb4a7ea

Browse files
committed
Create stringpattern14.py
1 parent 77f2a2e commit bb4a7ea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

String Patterns/stringpattern14.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
s = "ARYA"
2+
for i in range(len(s)):
3+
print(s[:i+1])
4+
for i in range(len(s)-1, 0, -1):
5+
print(s[:i])

0 commit comments

Comments
 (0)