Skip to content

Commit eb69709

Browse files
authored
add project
1 parent e33174e commit eb69709

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

project/pattren.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#Cara membuat pattren dengan teks (python)
2+
print("=== Pattren Text ===")
3+
MyStr = "Python"
4+
x = 0
5+
6+
for i in MyStr:
7+
x += 1
8+
print(MyStr[0:x])
9+
10+
for i in MyStr:
11+
x -= 1
12+
print(MyStr[0:x])

0 commit comments

Comments
 (0)