How to know if the left mouse click is pressed
<p>I am using PyAutoGUI library. How can I know if the left mouse button is pressed?</p>

<p>This is what I want to do: </p>

<pre><code>if(leftmousebuttonpressed):
   print("left")
else:
   print("nothing")
</code></pre>