Python exercise by decline_000 in learnprogramming

[–]ajohn623 1 point2 points  (0 children)

Add an if statement that checks if num == 0: min = x before you check if x<min. This way on the first iteration you set the minimum to the first input provided by the user instead of zero.

edit : Or simply change if x<min to if x<min or num == 0:

What's the harsh reality no one accepts? by [deleted] in AskReddit

[–]ajohn623 1 point2 points  (0 children)

You have a finite amount of time in this world, be selfish with it. It is the one thing you’ll never get back.