Python code to Java, Incorrect answers returned in Java. Did I type something wrong?

Printable View