How does the Python 3 min() function work with words?

I wrote this little line of code using Python 3 and I am trying to figure out how the min() function works with words. My initial thought was that when I run the code, the output would be “band” because “b” comes before all the other letters and I thought min() was supposed to look for the smallest value in a set. I am now confused and I was wondering if someone could help me understand what’s going on here.

My Code:

print (min("Cat", "Dog", "iguana", "band"))



In Python, string sorting is case sensitive by default.