Python Introducing Lists Using Lists Continental

Tichaona KUNDODYIWA
Tichaona KUNDODYIWA
5,031 Points

hie good people please help where i am i getting wrong

at it was assertionError and now its inditationError

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

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 49,714 Points

Indentation is very important in Python. For the 1st task it is straight forward. You don't need to indent your first two lines of code. When you do indent, according to python docs, you should indent 4 spaces. So try:

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

Note: There should be a space between your bullet and the continent name.