[ create a new paste ] login | about

Link: http://codepad.org/HMAT5dOE    [ raw code | output | fork ]

swapnilghorpade - Python, pasted on Jan 1:
1
2
3
4
5
6
7
8
import math
while(1):
    
    s=str(raw_input('>>'))
    try:
        print eval(s)
    except :
        print 'Invalid Input'


Output:
1
2
3
4
>>Traceback (most recent call last):
  Line 4, in <module>
    s=str(raw_input('>>'))
EOFError


Create a new paste based on this one


Comments: