Re: splitting tables
robsom> ... I (still) don't like the "for in range()" way to build
robsom> loops.
That's needed only when you need a numeric index. Much of the time you can
just iterate over a container object:
for element in mylist:
print element
or
for key in mydict:
print (key, mydict[key])
Skip
robsom> ... I (still) don't like the "for in range()" way to build
robsom> loops.
That's needed only when you need a numeric index. Much of the time you can
just iterate over a container object:
for element in mylist:
print element
or
for key in mydict:
print (key, mydict[key])
Skip
Comment