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.py
continents = [
    'Asia',
    'South America',
    'North America',
    'Africa',
    'Europe',
    'Antarctica',
    'Australia',
]
# Your code here
for continent in continents:
    print( " * " + continent)
    print( 

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