s = '192.168.1.2'res = sum(int(n)*256**i for n,i in zip(s.split('.'), [3,2,1,0]))print(res)
Standard input is empty
3232235778
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!