Thabang Matlou2,419 Points
What do we do to print other items and exclude others from the list?
I'm stuck with the question whereby I have to print other items and leave others from the list.
continents = [ 'Asia', 'South America', 'North America', 'Africa', 'Europe', 'Antarctica', 'Australia', ] print("continent:") for continent in continents: print("* " + continent)
Scott Bailey13,172 Points
You can use an if statement.
As you are looking for items that begin with an "A" - you can select the first charecter in the word and compare it to "A".
if continent == "A":
Remember python starts counting at 0, so the first charecter in the string is at 
If this comparision comes back as True it will execute the next indented code.