If you have a string and you want to get the smallest character(lowest ASCII value), you can use min().
str = "abcde"
print("Min character: " + min(str))
#prints: Min character: a
If you have a string and you want to get the smallest character(lowest ASCII value), you can use min().
str = "abcde"
print("Min character: " + min(str))
#prints: Min character: a
Leave a Reply