Skip to main content

Posts

Showing posts with the label function

functional groups python function string translate

python function string translate Python string method translate () returns a copy of the string in which all characters have been translated using table (constructed with the maketrans () function in the string module), optionally deleting all characters found in the string deletechars. Following is the syntax for translate () method − str.translate (table [, deletechars]); Python string method translate () returns a copy of the string in which all characters have been translated using table (constructed with the maketrans () function in the string module), optionally deleting all characters found in the string deletechars. Following is the syntax for translate () method − str.translate (table [, deletechars]); themify postline wordpress theme In the world of programming, seldom there is a need to replace all the words/characters at once in the whole file python offers this functionality using functions translate() and its helper functions maketrans(). In the world of programming, seld...