When I execute my codes in Spyder , the answer is right.However , the result in checkio is not the same.