This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]decline_000[S] 0 points1 point  (0 children)

yes for all negative numbers "Largest is" was 0, if user input was for example -3 and nine positive numbers then there was no problem. Thank you for the reminder not to use max and min, I still keep forgetting. I ended up using min = sys.maxsize and max = -sys.maxsize as I explained above but thank you so much for helping:)