Skip to content

Commit bdb2d10

Browse files
committed
udemy code for string basic
1 parent 912dd82 commit bdb2d10

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

udemy_course_code

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
st = 'Print only the words that start with s in this sentence'
2+

udemy_course_code.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
st = 'Print only the words that start with s in this sentence'
2+
str= ' '
3+
for n in st.split():
4+
if n[0]=='s':
5+
str= str+n+' '
6+
print(str)

0 commit comments

Comments
 (0)