Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialbrandon supinski
Python Development Techdegree Graduate 27,983 PointsGetting correct outcome(maybe), but still getting an error.
Can anyone notice what I am missing from this practice?
for continent in continents: print("*" + continent)
This is i what i get: Output for continents.py *Asia
*South America
*North America
*Africa
*Europe
*Antarctica
*Australia Task #1
.
Ran 1 test in 0.000s
OK
.F
FAIL: test_output (main.TestIterationExecution)
Traceback (most recent call last): File "", line 49, in test_output AssertionError: '* Asia' not found in '*Asia\n\n*South America\n\n*North America\n\n*Africa\n\n*Europe\n\n*Antarctica\n\n*Australia' : Hmm...not finding the correct items in your output
Ran 2 tests in 0.000s
FAILED (failures=1)
continents = [
'Asia',
'South America',
'North America',
'Africa',
'Europe',
'Antarctica',
'Australia',
]
# Your code here
for continent in continents:
print("*" + continent)
1 Answer
KRIS NIKOLAISEN
54,971 PointsThere should be a space between * and the continent name.
brandon supinski
Python Development Techdegree Graduate 27,983 Pointsbrandon supinski
Python Development Techdegree Graduate 27,983 PointsNoticed it 15m after i posted, thank you so much! I need to learn to pay attention to all the details.