title: How can I generate all possible IPs from a list of ip ranges in Python?
body: <p>Let's say I have a text file contains a bunch of ip ranges like this:</p>
  
  <pre><code>x.x.x.x-y.y.y.y
  x.x.x.x-y.y.y.y
  x.x.x.x-y.y.y.y
  x.x.x.x-y.y.y.y
  x.x.x.x-y.y.y.y
  </code></pre>
  
  <p>x.x.x.x is start value and y.y.y.y is end value of range.</p>
  
  <p>How can I convert these ip ranges to all possible IPs in a new text file in python?</p>
  
  <p>PS: This question is not same as any of my previous questions. I asked "how to generate all possible ips from cidr notations" in my previous question. But in here I ask "how to generate from ip range list". These are different things.</p>