import pyperclip text_to_be_copied = 'The text to be copied to the clipboard.' pyperclip.copy(text_to_be_copied)