Fun fact about min() and max() is that these functions can help you to sort in alphabetical order! If a string is passed as an argument, min() will return the first letter (alphabetically) and max() the last one (somewhat zetabetically). And if you specify more than one value, min() will return the first string in alphabetical order and max(), in contrast, the last one. For example, min("alpha", "omega") gives you "alpha", while max("alpha", "omega") returns "omega".
For Example:
max("gloomy", "grey", "green")-"grey"
min("gloomy", "grey", "green")- "gloomy"
Fun fact about
min()andmax()is that these functions can help you to sort in alphabetical order! If a string is passed as an argument, min() will return the first letter (alphabetically) andmax()the last one (somewhat zetabetically). And if you specify more than one value,min()will return the first string in alphabetical order and max(), in contrast, the last one. For example, min("alpha", "omega") gives you "alpha", while max("alpha", "omega") returns "omega".For Example:
max("gloomy", "grey", "green")-
"grey"min("gloomy", "grey", "green")-
"gloomy"