Hmmm. As far as I know you can use _ as a placeholder for a variable, and it's meant for this kind of use (where you don't really want to introduce a new variable name). It's strange that it doesn't work for you. Can you post the error message that you get?
I guess it's not a big deal since you can always use x as you did, but if it's really not working it might be a sign of other trouble. Alex On Sun, Oct 19, 2008 at 3:31 PM, pong <[EMAIL PROTECTED]> wrote: > > Hi Alex > > Thanks for the quick reply. By _ you mean a variable? I tried your > syntax but it does not work. > However, [2*x for x in [3,4]] does work. > -- Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne -- Australia -- http://www.ms.unimelb.edu.au/~aghitza/ --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---