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



Click to Enlarge


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

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250