'Python check if mouse is held down and then released

I have only been a few weeks into python and I want to know for Mouse Library how to check if the left click side is being held down and released, I want to do something like this (accurately):

import mouse

while True:
   mouseDrag = mouseHoldDownLeftClick()
   mouseRelease = mouseReleaseLeftClick()
   if mouseDrag:
       drag = True
   elif mouseRelease:
       drag = False


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source