Re: [Tutor] Python Variable Addition

2012-04-30 Thread Kapil Shukla कपिल शुक्‍ला
Viral
You should be doing this 

Addition of two numbers is + str(x+y)

+ operator works on same datatypes and int being one of the built in objects in 
python does not have a method z

U shld use str() or int() to do type conversion 

-Kapil
कपिल शुक्‍ला

-Original Message-
From: viral shah shahviral...@gmail.com
Sender: tutor-bounces+shukla.kapil=gmail@python.org
Date: Mon, 30 Apr 2012 15:20:21 
To: tutor@python.org
Subject: [Tutor] Python Variable Addition

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Pyhton editor

2012-02-17 Thread Kapil Shukla
All 

Couple of weeks ago I was looking for a nice free IDE for python and got many 
wonderful suggestion form very helpful people. However I stumbled upon 
PyScripter and I find it really amazing.

I feel once u try it you will hook on to it for ever 

Thanks 
Best Regards
Kapil
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


[Tutor] decimal precision in python

2012-02-06 Thread Kapil Shukla
i tried writing a small code to calculate option price using the binomial
tree model. I compared my results with results of the same program in
excel. There seems to be a minor difference due to decimal precision as
excel is using 15 decimal precision and python (both 2.7 and 3.1) using 11.
(at least that's what shown on shell)

can some one guide me whats the equivalent of using a double datatype on
python and i can't use long() in 3.1 any more.

Please also suggest a free editor for python which can at least repeat
previous command with a key stroke

regards
kapil
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor