Number guessing game written in Python