Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am mapcuk on github.
* I am mapcuk (https://keybase.io/mapcuk) on keybase.
* I have a public key ASDa80SoUC5xqFE31Fm89qmPIAL_WtZASSNtRBNeP8-sQAo
To claim this, I am signing this object:
@mapcuk
mapcuk / getip.py
Created June 17, 2011 07:15
Script gets range between 2 ip
"""Test task"""
def ntoa(num):
c = 2**8
ip=[]
k=range(4)
k.reverse()
for i in k:
p, num = divmod(num,c**i)