Python Introducing Lists Using Lists Continental

abhishek krishna vandadi
abhishek krishna vandadi
878 Points

Could someone help me with the code of "I'd like you to now only print continents that begin with the letter "A"?

It is challenge task 2 out of 2 in introduction to lists
continents = [
    'South America',
    'North America',
# Your code here
for i in continents:
status 401
status 401
13,817 Points

Hi!, u just need to check if the first letter in each of the words in the array contains the letter "A" and u do it like this:

for i in continents:
    if i[0] == "A":
        print("* " + i)

if it helped mark as best answer in ordet to close this theard