A quick question: If one is given a variable name as a string s, how
can one assign a symbolic expression to it? Here is what I try that
doesn't work:

var('a b c')
s = "a"
eval(s + " = b/c")

Traceback (most recent call last):
      ...
    a = b/c
      ^
SyntaxError: invalid syntax
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to