Exercise 6 (Advanced)

My code always finds more than 30 solutions when I run it but the tester fails with the following output.

What should I do?


 File "/usr/local/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
    yield
  File "/usr/local/lib/python3.8/unittest/case.py", line 676, in run
    self._callTestMethod(testMethod)
  File "/usr/local/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
    method()
  File "/app/test/test_main.py", line 18, in test_answer
    main()
  File "/app/src/main.py", line 54, in main
    prob = math.exp(-(S_old - S_new)/T)


Error: math range error