Mind reader
| Your PC has been taken over by Derren Brown who is trying to read your mind! Your thinking of a number and the computer will read your mind and guess what that number is! | ![]() |
However it is all an illusion! It is really a python program which is doing the hard work. The idea is simple. The user will think of a number between 1 and 100. The program will then always make an initial guess of 50. It will then ask if the number was correct, lower or higher.
It will then try again with a new number until it has guessed correctly.
Note – The goal is to find the secret number in as few tries as possible.
You need to log in or create an account to submit code!
Output: (clear)












