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 My Solution

louistafoya
louistafoya
5,619 Points

Question about rng practices

Is there a way to have a randomly generated problem-solving workshop that can be done multiple times for practice? I would love to do this exact one but a bit different or the code is written out and there has to be an edit to it but it is different each time. Is that possible for later practice and to gather a greater comprehension?

2 Answers

Steven Parker
Steven Parker
231,269 Points

The complexity of a program that generates similar but non-identical problems to solve would likely be beyond the level of the exercises that would be generated. While it can be done, my guess is long before you acquire the skills to create such a program, you'll no longer be interested in solving the kinds of exercises it would generate.   :see_no_evil:

But, for extra practice, there are a number of websites where people create programming challenges for other people to solve. One I've used before is Code Wars.