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


Picture showing the minimum and maximum in the string in python

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, April 23, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250