Adam Franklin1,206 Points
I don't know how to access my index with the first letter of a string. Any help?
What is the formula to access a strings first letter and print out all those items with the same letter in an index?
continents = [ 'Asia', 'South America', 'North America', 'Africa', 'Europe', 'Antarctica', 'Australia', ] # Your code here for continent in continents: print("* " + continent)
Haisam Elkewidy26,986 Points
for continent in continents: if continent[:1] == 'A' print("* " + continent)