title: How to compare two IP Addresses and find out if they match fully or partially or they do not match at all
body: <p>I need to compare two Different IP subnet and show result if it is full match, partial match or no match.</p>
  
  <p>I need to use Python.</p>
  
  <p>Can break IP into list but it becomes tricky when there is a subnet involved.
  For example:</p>
  
  <p>I need to compare a and b where a = 10.10.1.2/25 and b = 10.10.1.6/24 and show the result. I am new to python and not sure how to achieve this task.</p>