Hello, I have tested this challenge in my terminal and it works correctly. But, the test scripts fail with inconsistent results. Everytime it is run, a combination of tests from test #8 to test#13 fail. Test#8 fails consistently while test#9 passes sometimes and fails sometimes. Again tests# 10, 11 and 12 have passed sometimes - all of this with the same code. Here are screen shots of the code and the results -
Try removing all printed lines that are not required. Tests are checking number of guesses and secret number in a very peculiar way, which can sometimes give different results than the actual numbers.