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

Front End Web Development Techdegree Student 5,056 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?

1 Answer

Steven Parker
Steven Parker
217,519 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.