[IPython-user] Ipython print function problems

Dr. Phillip M. Feldman pfeldman@verizon....
Fri Jul 31 15:15:01 CDT 2009


How about the following?

print str(x) + '+' + str(y) + '=' + str(x+y)
1+2=3


DeR13 wrote:
> 
> Hi everyone, 
> 
> I am a complete noob at Ipython and have run across a problem. 
> If I type a simple code into the regular python terminal I get this
> output:
> 
>>>> x=1
>>>> y=2
>>>> print x, "+", y, "=", x+y
> 1 + 2 = 3
> 
> However in Ipython the same input yields:
> In [1]: x=1
> 
> In [2]: y=2
> 
> In [3]: print x, "+", y, "=", x+y
> ------> print(x, "+", y, "=", x+y)
> (1, '+', 2, '=', 3)    
> 
> Is it possible to configure Ipython to output without the syntax? 
>  1 + 2 = 3 instead of (1, '+', 2, '=', 3) 
> 
> Thanks D
> 
> 

-- 
View this message in context: http://www.nabble.com/Ipython-print-function-problems-tp24527097p24762463.html
Sent from the IPython - User mailing list archive at Nabble.com.



More information about the IPython-user mailing list