Perl Primer - University of California, Davis

Replace is a function that substitutes a string for another: String.replace(‘sub1’,’sub2’,n) String is the string on which replace is applied; n instances of ‘sub1’ are replaced with ‘sub2’; if n is not provided, all instances of ‘sub1’ are replaced. ... Write a Python program that: Reads a sentence from standard input. ................
................