Multiplication error in python
timr at probo.com
Wed Sep 28 08:28:32 CEST 2011
sakthi <sakthi92 at gmail.com> wrote:
>In the following code,
>>>> for a in l:
>Python gives an answer as 45. But i am getting 30 when i execute
>manually. Is there any different multiplication pattern in python?
My guess is that you actually typed
That produces 45.
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list