title: ValueError: '10.0.0.0/24' does not appear to be an IPv4 or IPv6 network
body: <p>I want to work with IP subnets / IP addresses in Python. I created the Python code using the <code>ipaddress</code> module. When I run the code in the pycharm IDE, it works fine. But when I run on the command prompt by typing <code>python test.py</code>, it shows the following error.</p>
  
  <pre><code>ValueError: '10.0.0.0/24' does not appear to be an IPv4 or IPv6 network
  </code></pre>
  
  <p><strong>test.py</strong>:</p>
  
  <pre><code>import ipaddress
  srcIp = ipaddress.ip_network("10.0.0.0/24")
  print(srcIp)
  </code></pre>