title: if statement with two conditions in Python
body: <p>I am writing a simple console program to help myself and some fellow geology students with rock sample analysis. Our lecturer provided us with a flow chart that helps to specify the characteristics of the sample. I am attempting to make this into a console program. </p>
  
  <p>My question is whether it is possible for the if statement on line 9 to take two conditions and if so have I written it correctly?</p>
  
  <pre><code>   def igneous_rock(self):
      print "Welcome to IgneousFlowChart"
      print "Assuming you are looking at an igneous rock, please choose the "
      print "option which best describes the sample:"
      print "1. Coherent 2. Clastic"
  
      choice1 = raw_input("&gt; ")
  
      if choice1 = '1', 'Coherent':    # this is the line in question!
          return 'coherent'
      elif choice1 = '2', 'Clastic':
          return 'clastic'
      else:
          print "That is not an option, sorry."
          return 'igneous_rock'
  </code></pre>
  
  <p>Thanks in advance :-)</p>