• repl.it gives me False but here gives me True


I would like to give some feedback about ...

From: https://py.checkio.org/mission/the-warlords/solve/


Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36

my code: https://github.com/EdinsonUwU/THE_WARLORDS/blob/main/THE_WARLORDS.py

Issue: I run my code on repl.it and vs code and the output for the test 24 is False, but when I check the solution here the output is True. I don't know how to procede, help.