Luke Maschoff820 Points
Very confused on this task/challenge
It says to index to a certain character, but I do not know how to index a character. Are they asking me to just manually count each letter out, so I start with continents? Or is there some other way to call every single continent that starts with the letter "A" into a print function?
continents = [ 'Asia', 'South America', 'North America', 'Africa', 'Europe', 'Antarctica', 'Australia', ] # Your code here print("Continents:") for continent in continents: print("* " + continent) print(continents, continents [)
Michael Cook14,518 Points
Hey Luke, the challenge is asking you to do the same thing that you did in the first challenge, except this time you only print out continents in the list that start with "A". Luckily, Python has a handy little built-in function called
startswith() that you can use. Try setting up a conditional and checking each continent if it starts with "A":
if continent.startswith("A"): print("*" + continent). Good luck!
Cheo R36,139 Points
Luke, you're close, just need to indent correctly and remove the first print statement.