Not sure why I'm getting an Assertion Error
My output is correct or at least it looks correct to me, but after the second time it was run, I'm getting a 'Assertion Error.'
continents = [ 'Asia', 'South America', 'North America', 'Africa', 'Europe', 'Antarctica', 'Australia', ] # Your code here for continent in [0, 1, 2, 3, 4, 5, 6]: print("* ", continents[continent])
Chris FreemanTreehouse Moderator 56,908 Points
It's not obvious from the output, but comma-separated arguments to
print() are output with a space between then. Since the first item includes a space in "* ", then effectively there are two spaces.
So I assume you just delete the white space and all is good?
My apologies, Chris! I must have clicked it by accident.
Manuel Canario624 Points
I am really lost, this is the way I did it, however, I have not found any instructions on the "f" function uses.
continents = [ 'Asia', 'South America', 'North America', 'Africa', 'Europe', 'Antarctica', 'Australia', ] # Your code here for continent in continents: if continent(0) == 'A': print("* "+ continent)