please try to help me out with this one....
i am reading IP addresses from command line I need to convert them into their decimal equivalents...a nd priint them
i have to use the socket.inet_ato n() function right ?
but i am not able to print the converted value...
like i am trying the code as
print "decimal equivalent is = %d " %(socket.inet_a ton(sys.srgv[0]))
but this doesnt print anything .... jsut the string written in the print statement is being displayed....
i am reading IP addresses from command line I need to convert them into their decimal equivalents...a nd priint them
i have to use the socket.inet_ato n() function right ?
but i am not able to print the converted value...
like i am trying the code as
print "decimal equivalent is = %d " %(socket.inet_a ton(sys.srgv[0]))
but this doesnt print anything .... jsut the string written in the print statement is being displayed....
Comment