Hi all,
In the last couple of months i got myself into programming. At first I wanted to learn java, so I spent a several spent months, along money trying learn that, but then I found myself making to many errors and overall not really understaning it. I decided to look into other programming languges, and found that python, which is somewhat similar to java, but seems much easier to use and write codes. With Python I found my self not worrying aboout classes, brackets and long process in defining objects. Python lanaguage is much easier for me to learn then java. Well any how, I wrote this simple code, but I keep getting this error message, can some tell what this means and how to correct it. The code I wrote is below the error message.
P.S.... I'm Using python 3.1 ide
erroer message
"
Traceback (most recent call last):
File "C:/Python31/adding.py", line 2, in <module>
integer1 = raw_input( 'Enter First Number: \n' )
NameError: name 'raw_input' is not defined
"
CODE
integer1 = raw_input( 'Enter First Number: \n' )
integer1 = int(integer1)
integer2 = raw_input('Enter Second Number: \n' )
integer2 = int(integer2)
add = integer1 + integer2
print ("Three answer is: "),add