Cursor Function In Python Practice