title: Calculate parking fee. '&' versus 'and'
body: <p>I am trying to write a Python program that charges the parking fee for how many hours you have parked.</p>
  
  <p>Everything works fine until the minutes exceed 300.</p>
  
  <p>I have played with returns and every time I did that after the input I would get successful completion no output.</p>
  
  <p>When I put in 600 minutes (10 hours) I get a fee of 40 dollars when it should be 30 dollars.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>import math
  rate1 = 5
  rate2 = 4
  rate3 = 3
  
  
  m = int(input('Please enter the number of minutes parked: '))
  
  if m &lt;= 60:
    x = m/60
    fee = math.ceil(x) * 5
    print('Parking fee for',m,'minutes is $',fee)
  
  elif m&gt;60 &amp; m&lt;=300:
    x = m/60
    fee = math.ceil(x) * rate2
    print('Parking fee for',m,'minutes is $',fee)
  
  elif m&gt;300:
    x = m/60
    fee = math.ceil(x) * rate3
    print('Parking fee for',m,'minutes is $',fee)
  
  else:
    print('Invalid input')
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>Please enter the number of minutes parked: 600
  Parking fee for 600 minutes is $ 40
  
  Process finished with exit code 0
  </code></pre>