I am new learner in python
I have written a code in python..
#!/usr/bin/python
s = raw_input('--> ')
print eval('s+1')
I am getting error like this
[root@python ~]# python 2.py
--> 2
Traceback (most recent call last):
File "2.py", line 3, in <module>
print eval('s+1')
File "<string>", line 1, in <module>
TypeError: cannot concatenate 'str' and 'int' objects
what could be the reason..