168k views
2 votes
Use the following initializer list:

W ["Algorithm", "logic", "Filter", "Software"; "Network", "Parameters", "Analyze", "Algorithm", "Functionality", "viruses“)
Write a loop to print the words that start with "A".
Sample Run
Algorithm
Analyze
Algorithm

1 Answer

5 votes

lst = ["Algorithm", "logic", "Filter", "Software", "Network", "Parameters", "Analyze", "Algorithm", "Functionality", "viruses“]

for x in lst:

if x[0] == 'A':

print(x)

I wrote my code in python 3.8. I hope this helps.

User Tules
by
4.3k points