tutorial.eyehunts.com
Python while loop user input | Example code
You can create a while with user input-based value evaluation with conditions. Just need to take input from the user and evaluate those values
Rohit