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

* mayur...@omnesysindia.com

 

Nothing Is Impossible For A Willing Heart ....

 

_______________________________________________
IDLE-dev mailing list
IDLE-dev@python.org
http://mail.python.org/mailman/listinfo/idle-dev

Reply via email to