On Mon, May 7, 2012 at 8:09 PM, Rogelio <[email protected]> wrote: > Why does IPcount not equal 46? Is this what the stout is for?
FWIW, I think this seems to fix it and make IPcount an integer.
import os
IPcount = os.popen("wc -l file.txt | awk '{print $1}'").read()
print "You have",IPcount,"IP addresses that are alive."
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
