title: TypeError unsupported Operand type(s) for %: Float and NoneType
body: <p>sorry to bother you with a noob question, but I am new to Python. Basically this is a homework assignment that I cannot understand what I am doing wrong on. I think I have everything I need but I Keep getting a typeerror. Any help is appreciated. Thanks! </p>
  
  <pre><code>def Main():
      Weight = float(input ("How much does your package weigh? :"))
      CalcShipping(Weight)
  
  def CalcShipping(Weight):
  
      if Weight&gt;=2:
          PricePerPound=1.10
  
      elif Weight&gt;=2 &amp; Weight&lt;6:
          PricePerPound=2.20
  
      elif Weight&gt;=6 &amp; Weight&lt;10:
          PricePerPound=float(3.70)
  
      else:
          PricePerPound=3.8
  
      print ("The total shipping cost will be $%.2f") % (PricePerPound) 
  
  
  Main()
  </code></pre>