Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.