combining two if statements
<p>I am trying to combine the following if statments</p>

<pre><code>    if "%s\n" % baseAU in out:
        print "Match"
        count = 1

    if internaldep in pendinggerrits:
        print "match"
        count = 1
</code></pre>

<p>I tried the following but is there an easier way</p>

<pre><code>    if  "%s\n" % baseAU in out and internaldep in pendinggerrits:
        print "match"
</code></pre>
