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 Python Basics (Retired) Pick a Number! Any Number! The Solution

Misc. Challenges

Hey guys, I just finished sighing at myself for not being able to do the number guessing game alone, so I looked at the solution without watching the video, and understood it all! Just sad at myself for missing how to do it. In any case, could anyone give me a few more misc. challenges on this level to make sure I get all this?

2 Answers

You could also check out Codewars. You 'train' in your preferred programming language, and level up, etc. They have styled it as if all the users are samurai, which is cool.

I like to fire it up and try to do at least one 'kata' each day, just to keep my skills up and learn to solve a variety of problems.

Sometimes I'll need to search on Google or Stack Overflow to figure out what methods I'll need, which is a good practice to get into. Also, after you complete a 'kata', you'll see some other ways people did the same exercise, some of which will be voted up for 'best practice' or 'clever', so you'll get a feel for how you can make your code cleaner and more efficient.

It's an excellent tool to use alongside more formal training like Treehouse.

Just note that they use Python version 2.7, not 3 like Treehouse does, at least for now.

Ricky Catron
Ricky Catron
13,023 Points

Some great ones around that level are:

Have the user input a string:

Level 1 version: Output the string reversed Level 2 version: Output the string with each word reversed but with the words in the same order.

Have the user input a number

Level 1 version: Output all the multiples of that number. IE 8 becomes 1,2,4,8 and 7 becomes 1,7 Level 2 version: Ouput every number up to and including that number, add the string multiple if the number is a multiple or the string no if it is not.

These are some fun ones off the top of my head.

Goodluck! --Ricky