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 trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Magdalena Krzeszycha](https://secure.gravatar.com/avatar/0827ead85173a01de9e131b89c69c7aa?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Magdalena Krzeszycha
1,522 PointsWhere is mistake? Cannot find one :(
video_games = [ "The Legend of Zelda: Breath of the Wild", "Splatoon 2", "Super Mario Odyssey", ]
books = [ "Automate the Boring Stuff with Python: Practical Programming for Total Beginners - Al Sweigart", "Python for Data Analysis", "Fluent Python: Clear, Concise, and Effective Programming - Luciano Ramalho", "Hello Web App: Learn How to Build a Web App - Tracy Osborn", ]
def display_list(display_name, wishes): print(display_name + ":") suggested_gift = wishes.pop(0) print("=====>", suggested_gift, "<=====") for wish in wishes: print("* " + wish) print()
display_list("Books", books) display_list("Video Games", video_games)
2 Answers
![Jason Boothman](https://secure.gravatar.com/avatar/73c5c45d8b13e11bd0b33c2dc484ff5f?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Jason Boothman
6,349 PointsWhat error are you getting? Also...I/we can't tell from the way you have the code in (you can add code using markup), but are you sure all the new lines and indentation are correct? Python is very particular about indentation.
I just copied your code, and gave it the proper indentation and lines, and it ran for me. It should look like...
video_games = [ "The Legend of Zelda: Breath of the Wild", "Splatoon 2", "Super Mario Odyssey", ]
books = [ "Automate the Boring Stuff with Python: Practical Programming for Total Beginners - Al Sweigart", "Python for Data Analysis", "Fluent Python: Clear, Concise, and Effective Programming - Luciano Ramalho", "Hello Web App: Learn How to Build a Web App - Tracy Osborn", ]
def display_list(display_name, wishes):
print(display_name + ":")
suggested_gift = wishes.pop(0)
print("=====>", suggested_gift, "<=====")
for wish in wishes:
print("* " + wish)
print()
display_list("Books", books)
display_list("Video Games", video_games)
![Magdalena Krzeszycha](https://secure.gravatar.com/avatar/0827ead85173a01de9e131b89c69c7aa?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Magdalena Krzeszycha
1,522 PointsThat must have been a problem, now it works, thank you !
![Jason Boothman](https://secure.gravatar.com/avatar/73c5c45d8b13e11bd0b33c2dc484ff5f?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Jason Boothman
6,349 PointsSure thing! I'm just going through and learning Python as well (literally just finished this one today). I love how the languages is more 'readable', but when it's using indentation/new lines instead of brackets for loops and such, you have to be very careful.
Pasi Laaksonen
7,781 PointsPasi Laaksonen
7,781 PointsIf the syntax of your code is your concern here, that's easy to fix: