Use enumerate instead of awkward range(len)
thewhitetulip opened this issue · comments
Suraj Patil commented
import sys
for i, item in enumerate(sys.argv):
print("{} {}".format(i, item))
Aims to teach Python3 by example
thewhitetulip opened this issue · comments
import sys
for i, item in enumerate(sys.argv):
print("{} {}".format(i, item))