Articles → Python → Find Maximum And Minimum In A String In Python
Find Maximum And Minimum In A String In Python
What Is Minimum And Maximum In A String?
Example
myString = "gyan"
print("Max value is:", max(myString))
print("Min value is:", min(myString))
Output