Re: [sage-support] dynamic variable names

2018-12-01 Thread Tevian Dray
>> Use the globals() Python dictionary. Works perfectly; thanks! -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To p

Re: [sage-support] dynamic variable names

2018-12-01 Thread William Stein
Use the globals() Python dictionary. E.g., $ python Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34) [GCC 7.3.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> globals()['q' + str(5)] = 15 >>> q5 15 On Sat, Dec 1, 2018 at 3:36 PM Tevian Dray wrote: > > Ho