String Handling Functions Program In Python Using Loop