how to access continents starting with leeter A
continents = [ 'Asia', 'South America', 'North America', 'Africa', 'Europe', 'Antarctica', 'Australia', ] # Your code here print("continents:") for continent in continents: print(" * " + continent)
Steven Parker171,342 Points
You can access individual characters in a string by indexing, using brackets similar to working with a list. Since index numbers start at 0, the first character of "mystring" would be "
You could then compare that to the letter "A" in a conditional expression.