how to get the ordinal number in list

Marko Rauhamaa marko at pacujo.net
Mon Aug 11 05:35:44 EDT 2014


Rustom Mody <rustompmody at gmail.com>:

> You think that the '=' sign not standing for math equality is ok.
>
> How come?

Python is a formal language with a well-defined syntax and reasonably
well-understood semantics. That's all that matters. Any resemblance to
the much more ad-hoc syntax of classical mathematics is almost
coincidental.

Instead of fighting the crystal-clear status of the = symbol in Python,
you should choose a worthier crusade. For example, you could help
mathematicians and physicists agree on the meaning of

  6 3
  ∫ ∫ f(x, y) dy dx
  0 2

The mathematicians maintain the expression means x ranges from 0 to 6
and y from 2 to 3. The physicists consider that too confusing in
practice and insist it is y that ranges from 0 to 6 and x from x to 3.


Marko



More information about the Python-list mailing list