I'm using pycharm and this is my code.
import pyautogui
while True:
position = pyautogui.displayMousePosition()
print(position)
After I hit play, the code starts working however the only response I get is Press "Ctrl-C to quit" and after I cancel the code an infinite list of none appears.