I'm currently on Functions 14. I, of course, finished the task easily, but I decided to experiment, and...
Well, min() and max() seem to work with different types.
You can see my code below. And it returns False. If I switch False to True - it returns True.
I have a simple question, two actually:
This doesn't work on PyCharm for some reason. I get this error: "TypeError: unorderable types: str() < int()". Why does it work here and why does it return a boolean every time?
# Set minimum to the min value of any set of numbers on line 3! minimum = min('', 8, False) print minimum
Thanks in advance.