convert ints in a range to strings

Paul Rubin http
Thu Sep 18 01:30:43 CEST 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