title: Basic python program
body: <p>I tried to complete the program but the answer is wrong, and I can't pinpoint what exactly.</p>
  
  <p>QUESTION: Given the equations of two lines (y=mx+b), determine if the two lines are parallel, the same or intersect. Calculate and output the point of intersection.</p>
  
  <p>My code: </p>
  
  <pre><code>equation_1 =raw_input("Please enter the equation of your 1st line(y=mx+b): ")
  equation_2 =raw_input("Please enter the equation of your 2nd line(y=mx+b): ")
  
  plus_1 = equation_1.find('+')
  plus_2 = equation_2.find('+')
  
  x_1 = equation_1.find('x')
  x_2 = equation_2.find('x')
  
  equalsign_1 = equation_1.find('=')
  equalsign_2 = equation_2.find('=')
  
  b1 = equation_1[x_1+1:]
  b2 = equation_2[x_2+1:]
  
  m1 = equation_1[equalsign_1+1:x_1]
  m2 = equation_2[equalsign_2+1:x_2]
  
  if m1==m2 and b1!=b2:
      print "Your equations are parallel. "
  
  elif m1==m2 and b1==b2:
      print "Your equations are the same. "
  
  else: 
      equation_intersect_y = float(b2)-float(b1)
      equation_intersect_x = float(m2)-float(m1) # equation_intersect_x = float(m1)-float(m2)
  
      poi_x = float(equation_intersect_y)/float(equation_intersect_x)
      poi_y = float(b1)*float(poi_x)+float(m1)`
  </code></pre>