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)
![cory woods](https://secure.gravatar.com/avatar/80b61e58e6f1eddb33c0936c94f45df3?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
cory woods
2,568 PointsNo clue how to follow the logic in this code
Can anyone break this down for me please?
1 Answer
![Harald N](https://secure.gravatar.com/avatar/15b6b47c0bcd68d4002066380b207e53?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Harald N
15,843 PointsI haven't programmed in python much, but it seems like the (result = 'test' + 5) causes an typeError, witch make the program skip print(b) and since it's not an valueError it skips print(c) as well. The try block catches the error internally and the else statement doesn't run. At the end, the print(f) runs, and the program finishes.
Not 100% sure, but think this is the main essence. Hope it helps.
Mark Sebeck
Treehouse Moderator 37,777 PointsMark Sebeck
Treehouse Moderator 37,777 PointsMake sure when you ask a question about quizzes you copy and paste the question. Quizzes are in random order so we won't always know what question is giving you issues.