Python Introducing Lists Using Lists Continental

How can I choose only A index [0]==true in list?

get struct in test. How to choose only A from index[0] list?
continents = [
    'South America',
    'North America',
# Your code here
for continent in continents:
    print( " * " + continent)

1 Answer

<noob />
<noob />
16,812 Points

Hi. i advice a rewatch to the videos . in order to do that u need to add an if statement below the for loop. u need to iterate each item in the list and check if the first index of the item is A. u do it like so: if continent[0] == “A”: then print