PROBLEMS WITH PYTHON IN SOME VARIABLE,FUNCTIONS,ETC.

John Nagle nagle at animats.com
Thu Apr 10 13:52:05 EDT 2008


subhabrata.iisc at hotmail.com wrote:
> I am using Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.
> 1310 32 bit (Intel)] on win32 with IDLE 1.2.1
> My O/S is Windows XP SP2 I use 512 MB RAM.
> I am encountering the following problems:
> (i) a1=1
>     a2=2
>     a3=a1+a2
>     print a3
> # The result is coming sometimes as 3 sometimes as vague numbers.

     Are you pasting that code into IDLE with cut and paste?
IDLE doesn't process multiple-line paste operations properly,
and usually ignores all lines after the first.  When it does
this, it does not produce an error message.  That may be
your first problem.

				John Nagle



More information about the Python-list mailing list