Python string replace() method is another inbuilt function in Python Programming that is responsible to return the copy of all the strings where each occurrence of the substring has been necessarily replaced for another substring. The replace() method in Python String thus replaces the specific phrase with some other specified phrase. The Python string replace() method also does not change the original string
Here is the syntax for min() method:
This method is responsible for returning the min alphabetical character from within the string str.
The example below shows the usage of min() method.
#!/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)
When the above program is made to run, it produces the following result:
Min character: ! Min character: !
Here at Intellinuts, we have created a complete Python tutorial for Beginners to get started in Python.