0

I have an list which contains 100 elements I want to print the elements which all are starting from the word 'A' how can I do that in python

20th Aug 2016, 6:59 AM
Fayaz Issadeen
Fayaz Issadeen - avatar
3 Answers
+ 2
for i in wordlist: if i.startswith("A"): print(i)
20th Aug 2016, 9:27 AM
Gershon Fosu
Gershon Fosu - avatar
0
i would import regular expressions and filter all words that start with a.
20th Aug 2016, 8:59 AM
Tom Post
Tom Post - avatar
- 2
by using print statement
20th Aug 2016, 7:42 AM
Farooq Hafeez
Farooq Hafeez - avatar