String Library
String Replace This will replace the Bob with James and store it in the new variable. The variable ‘str’ will remain the same. Strip or lstrip Prefixes Parsing and Extracting Extracting data from an email ID required to search the letter ‘@’ then search the keyword ‘>’, then print the…