Apr-01-2020, 08:39 PM
(This post was last modified: Apr-01-2020, 08:40 PM by deanhystad.)
You need a loop. Are you familiar with any programming languages? If so, please forgive. A loop allows you to run the same code over and over without having to write the code over and over. You would have a loop that repeatedly called guess_number() over and over until some condition is met. For example
done = 'N' While done != 'Y': guess_number() done = input('Would you like to play again (Y/N)? ')Python has other kinds of loops that are useful for doing different kinds of processing.