Python Problems and Solutions

From rbachwiki
Revision as of 02:36, 29 January 2019 by Bacchas (talk | contribs)
Jump to navigation Jump to search
st = 'Print only the words that start with s in this sentence'
for word in (st.split()):
    if word[0]== 's':
     print(word)