Ask Your Question

Revision history [back]

Limit evaluatation from user input not working

My code is:

t = raw_input()
#n = var('x')
u2 = raw_input()

It gives me this error:

Error in lines 4-4
Traceback (most recent call last):
  File "/projects/sage/sage-6.10/local/lib/python2.7/site-packages/smc_sagews/", line 905, in execute
    exec compile(block+'\n', '', 'single') in namespace, locals
  File "", line 1, in <module>
AttributeError: 'unicode' object has no attribute 'limit'

What am I doing wrong? I want to ask the user the function to be evaluated and the number that x approaches.