Python Introducing Lists Using Lists Continental

Kaden Currier
Kaden Currier
1,325 Points

it says invalid syntax

it says invalid syntax ai the if statement

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

1 Answer

KRIS NIKOLAISEN
KRIS NIKOLAISEN
53,693 Points

This line needs to be followed by a colon

if items[0] == "A":
Blue DiamondXD
Blue DiamondXD
5,369 Points

i can see the face you did when you readed the comments lol no card fealing bro lol