Aleksandra Laska3,994 Points
How to do it ?
continents = [ 'Asia', 'South America', 'North America', 'Africa', 'Europe', 'Antarctica', 'Australia', ] for continent in continents: print("* " + continent) # Your code here
Josh Keenan19,299 Points
Assuming you mean the second part of the challenge:
for continent in continents: if continent == "A": print("* " + continent)
The if statement accesses the first letter of each string and then checks to see if it is "A" and if so prints it, if that isn't the case the code simply doesn't run and it moves to the next item in the list.