Python Introducing Lists Using Lists Continental

Jason Widjaja
Jason Widjaja
7,904 Points

idk what to do

i dont know how to access words that begin with A with indexing

continents.py
continents = [
    'Asia',
    'South America',
    'North America',
    'Africa',
    'Europe',
    'Antarctica',
    'Australia',
]
# Your code here
for continent in continents:
    print(continent[A])

1 Answer

continents = [ 'Asia', 'South America', 'North America', 'Africa', 'Europe', 'Antarctica', 'Australia', ]

Your code here

for continent in continents: if continent[0] == 'A': print(continent)