[Idle-dev] output improper
Mayuresh Marathe
mayuresh at omnesysindia.com
Mon Oct 26 09:40:57 CET 2009
Dear Sir,
I would request kind help in sorting a problem out as I am getting improper
results. I am pasting the program and its output for reference.
Python 3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit (Intel)]
on win32
Type "copyright", "credits" or "license()" for more information.
>>> print ("Please give a number: ")
Please give a number:
>>> a = input()
12
>>> Print ("And another :")
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
Print ("And another :")
NameError: name 'Print' is not defined
>>> print ("And another: ")
And another:
>>> b = input()
23
>>> print ("The sum of these numbers is :")
The sum of these numbers is :
>>> print (a+b)
1223
>>> print a+b
SyntaxError: invalid syntax (<pyshell#7>, line 1)
>>> print("a+b")
a+b
>>> print (a+b)
1223
>>>
Best Regards,
Mayuresh Marathe | Manager Operations - Mumbai
Mob (+91) 9324704490
* mayuresh at omnesysindia.com
Nothing Is Impossible For A Willing Heart ....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/idle-dev/attachments/20091026/271be91f/attachment.htm>
More information about the IDLE-dev
mailing list