Tutorials Point


  Python Basics
  Python Advanced
  Python Useful References
  Python Useful Resources
  Selected Reading

© 2011 TutorialsPoint.COM


  Home     References     Discussion Forums     About TP  

Python String min() Method


previous next AddThis Social Bookmark Button


Description:

This method returns the min alphabetical character from the string str.

Syntax:

min(str)

Parameters:

Here is the detail of parameters:

  • str: string from which min alphabetical character needs to be returned.

Return Value:

It returns the max alphabetical character from the string str.

Example:

#!/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: !


previous next Printer Friendly



  

Advertisement

Online Image Processing

Indian Baby Names