convert ints in a range to strings

Paul Rubin http
Wed Sep 17 19:30:43 EDT 2003


hokieghal99 <hokiegal99 at hotmail.com> writes:
> ------------------------------
> a="192."
> b="168."
> c="1."
> r = range(256)
> for r in r:
> 	print a + b + c + r

for r in range(256):
  print "192.168.1.%d" % r




More information about the Python-list mailing list