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 trial2 Answers
Tom Finet
7,027 PointsHi there,
Since there is only one 1 in the byte, we only have to count its position from the right, which is 4. This means that the answer is 2^3 = 8. Since all the other bits have a value of 0 we can ignore them and find the value of the bit with the value of 1. In this case the answer is 8.
Moe Myint Kyal Sin
Courses Plus Student 553 Pointsthanks you so much for helping :)
Tom Finet
7,027 Pointsconsider up voting and making my answer best answer so that it can help others too.
Happy coding!
Tom Finet
7,027 PointsThanks for the support appreciated!
William Li
Courses Plus Student 26,868 PointsWilliam Li
Courses Plus Student 26,868 PointsSarah Finet , it's done, you answer is worthy of the best answer. :)