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 trialmarcusurso
417 PointsTyping the variable for the lesson and attempting to divide the numerical value by 4 and the output is "TypeError".
I've tried the help function in Console and cannot find a solution. Please help!
2 Answers
marcusurso
417 PointsWhile typing in the value for the variable "favorite_number" I included " ' ' " which is what sent back the error. I watched the video again and seen the flaw in my code the second time then tried the correct way of writing it which gave me the correct output without a "TypeError".
abdoee abdo
235 Pointsvariable = "favorite_number" print(variable) try this