Leetcode Array Two Sum Problem In Python A Floating Point