import pyautogui, time pyautogui.press('h') pyautogui.press('e') pyautogui.press('l') pyautogui.press('l') pyautogui.press('o')