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 trialEnder Dagdelen
Courses Plus Student 958 Pointsdifference of real python to TH.workspace
hi, i am having trouble because during the exercises after videos i believe that i am solving the questions right but i recieve a message like i am doing something wrong. yes, of course i can be wrong its ok but when i copy the question on a real python and solve the question there (like make a list then remove 1 item etc.) it all operates totally normal. so i am asking you to tell me why its like that. and it would be really nice to see the right code somewhere in your exercises section. because sometimes i am trying everything and yet cant find the right answer and had to omit that part. so please put an answer key somewhere or if you already have please tell me the direction. thank you so much
states = [
'ACTIVE',
['red', 'green', 'blue'],
'CANCELLED',
'FINISHED',
5,
]
3 Answers
Žiga Pregelj
18,126 PointsYea it gets a little tricky when it comes to code challenges, i had the same experience(specially in python), sometimes i had the right thinking but it wasn't treehouse's way so it didn't work ... now i learned that if it doesn't work i try many ways to solve the problem and sooner or later i pass :)
states.remove(5);
states.remove(['red', 'green', 'blue']);
Ender Dagdelen
Courses Plus Student 958 Pointsok, the problem is now the code challenges very easy because i am just a beginner. so trust me i am reviewing the video and doing exactly the same thing as shown in the video and after when my answer is not accepted i really become very furious and it breaks my enthusiasm. i think answers should be in the website too, so i can at least see what i am doing wrong. because until now i am just doing whatever the video has shown and cant try many thing to solve the problem because i am a beginner
Žiga Pregelj
18,126 PointsI think that a lot of treehouse code challenges are already answered, you just need to google it :)