Python Introducing Lists Using Lists Continental

Terrence Tazvivinga
Terrence Tazvivinga
1,729 Points

How to use index

Kindly assist, I am stuck on this task

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

1 Answer

continents = ["North America", "South America", "Africa"]

print(continents[0]) 👈 #Use of index here

print(continents[2]) 👈 #Use of index here

If you need more help or the solution, tag me here again.