# How do I convert from unicode to a polynomial?

Hi,

I have a raw_input like

y = raw_input()

And if I write for example x+2 in the input I get u'x+2' as y.

How can I convert it to a simple x+2 polynomial?

sage: y = raw_input() x+2

sage: a u'x+2'

add a comment