please use python and explain.
Develop a guessing software. The program generate a number
between 1 and 10, and then ask the user to guess that number. If the user does not get it, the program indicates if it is too high or low and asker the user for another guess. Once the user gets the correct response, a successful message comes up with the number of tries used.
- Develop your algorithm. Convert it in Python.
- The program must generate a random number and call the algorithm/function guess(). It will display the successful message and the number of tries as the result.