How do you use a mouse pick up and drop object?

It is my first time using python in blender and so I don’t know that much about it. I am trying to make a game where you can left click an object drag it to an area and drop it again. Any ideas how to code it or does anyone know any videos that can show me how? I am using version 2.79.

why not do a search, it’s asked many times before.

@BluePrintRandom made a good example here:
Drag and Drop with Logic Bricks ? (python)

Thanks, that’s perfect. I had done searches but when I tested them they hadn’t worked.