import pyperclip text pyperclip paste(separate lines and add stars lines text split('\ 'for in range(len(lines))loop through all indexes for "lineslist lines[ 'lines[iadd star to each string in "lineslist text '\njoin(linespyperclip copy(textwhen this program is runit replaces the text on the clipboard with text that has stars at the start of each line now the program is completeand you can try running it with text copied to the clipboard even if you don' need to automate this specific taskyou might want to automate some other kind of text manipulationsuch as removing trailing spaces from the end of lines or converting text to uppercase or lowercase whatever your needsyou can use the clipboard for input and output short progampig latin pig latin is silly made-up language that alters english words if word begins with vowelthe word yay is added to the end of it if word begins with consonant or consonant cluster (like ch or gr)that consonant or cluster is moved to the end of the word followed by ay let' write pig latin program that will output something like thisenter the english message to translate into pig latinmy name is al sweigart and am , years old ymay amenay isyay alyay eigartsway andyay iyay amyay , yearsyay oldyay this program works by altering string using the methods introduced in this type the following source code into the file editorand save the file as piglat pyenglish to pig latin print('enter the english message to translate into pig latin:'message input(vowels (' '' '' '' '' '' 'piglatin [ list of the words in pig latin for word in message split()separate the non-letters at the start of this wordprefixnonletters 'while len(word and not word[ isalpha()prefixnonletters +word[ word word[ :manipulating strings