how to print out the mouse position python code example Example: py get mouse coordinates import pyautogui pos = pyautogui.position()