#!/usr/bin/env python3; ############################################################################### # This program illustrates some of the string functions in Utils # # Copyright © 2020 Richard Lesh. All rights reserved. ############################################################################### import Utils LTRSTR = " Spaces to the left" RTRSTR = "Spaces to the right " TRIMSTR = " Spaces at each end " BLANK = " \t\n " LOWERSTR = "This String is Lowercase" UPPERSTR = "This String is Uppercase" # Begin Main print(str("|") + LTRSTR.lstrip() + str("|")) print(str("|") + RTRSTR.rstrip() + str("|")) print(str("|") + TRIMSTR.strip() + str("|")) print(str("|") + BLANK.strip() + str("|")) print(str("|") + LOWERSTR.lower() + str("|")) print(str("|") + UPPERSTR.upper() + str("|"))