title: Using multiple input statements with if/else
body: <p>I am trying to create a simple program based on what mode of transport people should take to work if it is raining depending on how far they live:</p>
  
  <pre><code>&lt; 2km = "walk"
  &gt; 10km = "bus"
  &gt;= 2km and &lt;=10km = "bike"
  </code></pre>
  
  <p>I have worked out the first bit (well at least I think I have), but I'm stuck as to how to integrate the different if statements for the different distances. So once a person answers "no" to the question "is it raining today", they then have to enter an integer number for how far they live from work and based on this it will tell them what mode of transport to take.</p>
  
  <p>Any help would be greatly appreciated</p>
  
  <pre><code>`weather = input("Is it raining today? ")
  if weather == "yes":
  print("You should catch the bus to work.")
  elif weather == "no":
  input("How far in km do you need to travel? ")`    
  </code></pre>