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

Python

David Cediel
David Cediel
13,660 Points

The game doesn't validate if the inserted word is contained in the randomly chosen word, does it?

Hi, my first post in the community and, first of all, sorry about my english. In the game explained in the video, the app doesn't validate if the inserted word is contained in the randomly chosen word, does it? I was trying to write the code on my own and I was supposed to do it in that way but in the video does not do it, is correct? Thanks a lot David

Philip Schultz
Philip Schultz
11,437 Points

Hey David, What video are you referring to? Can you post the code or a link to the video? I'll try my best to help.

2 Answers

David Cediel
David Cediel
13,660 Points

Oh sorry, I thought that in my post were included the tags referring to the video. In Python Collections course, in the sets section, the last video, "Out of this word" Thank you very much!

Philip Schultz
Philip Schultz
11,437 Points

Hey David, Correct. The game is not checking whether the word guessed is actually a word that can be created from the randomly chosen word. I think this video just wanted to show you how to compare sets. This seems like it would be a fun game to build off of though......how would you make it better? I'm thinking you could take the random word and the given word, turn them into lists, then check that each character is in the list.