+ 3
Why the code is not valid?
2 Answers
+ 2
Ok, I haven't checked all the code but one thing I recommend you to do is not give keywords names to the variables like min sum etc
+ 2
Your indentation is all over the place. You seem to just pick a random number of spaces before each line and you can't do that in Python. I'd suggest you review how to use indentation before continuing.
You have other issues too:
Require a colon ":" at the end of the line starting with def
Equality operator is "==" not "="