Python Introducing Lists Using Lists Continental

julio spencer
julio spencer
2,200 Points

What's wrong with second code? Bug in code?

Got output but still error.

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

Your code here

for continent in continents: print("* " + continent)

for letter in continents: if letter[0] == "A": print("* " + letter)

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

for letter in continents:
    if letter[0] == "A":
        print("- " + letter)

2 Answers

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 47,480 Points

You should only have one for loop. Your bullet should also be *.