Oct-21-2020, 08:07 PM
Please use the Python tags when posting code.
Without knowing the assignment, tough to know what they are asking. This works for integers, not floats, and only in a particular range. A set of negative numbers will give the wrong answer.
What was the assignment?
Without knowing the assignment, tough to know what they are asking. This works for integers, not floats, and only in a particular range. A set of negative numbers will give the wrong answer.
What was the assignment?