title: Is there a way to add multiple conditions in a for loop?
body: <pre><code>    n=int(raw_input('enter the number of mcnuggets you want to buy : ')) #total number of               mcnuggets you want yo buy
      for a in range(1,n) and b in range(1,n) and c in range(1,n) :
          if (6*a+9*b+20*c==n):
              print 'number of packs of 6 are ',a
              print 'number of packs of 9 are ',b
              print 'number of packs of 20 are',c
  </code></pre>
  
  <p>i am new to programming and i am learning python.the code above gives errors. Any suggestion.?.</p>