Python IP Check
Question: Given the range xxx.xxx.xxx.(195-223) Is that correct to write it in
xxx.xxx.xxx.196/29 and check whether an IP is in the given network by doing

    
    
    from ipaddr import IP, CIDR 
    #if IP('xxx.xxx.xxx.xxx') in IP('xxx.xxx.xxx.196/29') or
    #if IP('xxx.xxx.xxx.xxx') in CIDR('xxx.xxx.xxx.196/29')
    


Answer: I didn't see IP in ipaddr, only IPAddress. May be like this?

    
    
    from ipaddr import IPAdddress, IPNetwork
    
    if IPAddress('10.0.0.195') in IPNetwork('10.0.0.196/29'):
        pass
    

