Finding all

Report a typo

You will get a sentence as input. Find all words that start with the letter s and print them as a list. Keep in mind that the pattern should be case-sensitive – you only need words that start with a lowercase s.

Sample Input 1:

She sells seashells on the seashore.

Sample Output 1:

['sells', 'seashells', 'seashore']
Write a program in Python 3





___

Create a free account to access the full topic