0

A string value containing more than 1 word is passed as input to the program itmust print all the words starting with letter 't'

input: I went to the movie output : to the Note:use ( .startswith ) method

2nd Sep 2018, 11:54 AM
bharath
bharath - avatar
4 ответов
+ 2
check this: result = ",".join([word for word in input().split(" ") if word.lower().startswith('t')]) print(result)
2nd Sep 2018, 12:21 PM
MO ELomari
MO ELomari - avatar
+ 2
great u r right tnx for ur help
2nd Sep 2018, 1:34 PM
bharath
bharath - avatar
0
Anna please help me
2nd Sep 2018, 11:54 AM
bharath
bharath - avatar
0
error Mohamed ELomari
2nd Sep 2018, 1:11 PM
bharath
bharath - avatar