define loop statement?
Magnus Lycka
lycka at carmen.se
Wed Feb 22 11:00:03 EST 2006
David Isaac wrote:
> PS Here's the motivation. Python closely resembles pseudocode. With
> a very little LaTeX hacking, it is often possible to write algorithms is
> Python that typeset as reasonable pseudocode. A simple repetitive
> loop is a bit of a sticking point.
With slightly more LaTeX hacking or possibly Python hacking on your
script before passing it to LaTeX, you might just be able to change
occurences of
for x in range(a, b):
to
for x in [a, b):
or whatever, and get away with plain vanilla Python
in your code...
More information about the Python-list
mailing list