I'm having trouble with the second part of this challenge
The code I have written seems to answer what the question is asking for, but when I submit it, it says it is wrong. Could someone please clarify what is wrong with the code I have written? Thanks!
continents = [ 'Asia', 'South America', 'North America', 'Africa', 'Europe', 'Antarctica', 'Australia', ] # Your code here for continent in continents: print('* ' + continent) for continent in continents: if "A" in continent: print(continent)
Antonio De Rose20,840 Points
# almost there, think a little deep for continent in continents: if "A" in continent: # how do you check a condition for a value of a string, this line is only error print(continent) # if continent == 'A'
Hey David! MaryJane here, remember me? I'm on Full stack JS TD. Nice to see you here! small world :)