Copyright © tutorialspoint.com
This method returns the min alphabetical character from the string str.
min(str) |
Here is the detail of parameters:
str: string from which min alphabetical character needs to be returned.
It returns the max alphabetical character from the string str.
#!/usr/bin/python str = "this-is-real-string-example....wow!!!"; print "Min character: " + min(str); str = "this-is-a-string-example....wow!!!"; print "Min character: " + min(str); |
This will produce following result:
Min character: ! Min character: ! |
Copyright © tutorialspoint.com