Re: problem with append

*To*: mathgroup at smc.vnet.net*Subject*: [mg129543] Re: problem with append*From*: Tomas Garza <tgarza10 at msn.com>*Date*: Mon, 21 Jan 2013 00:11:22 -0500 (EST)*Delivered-to*: l-mathgroup@mail-archive0.wolfram.com*Delivered-to*: l-mathgroup@wolfram.com*Delivered-to*: mathgroup-newout@smc.vnet.net*Delivered-to*: mathgroup-newsend@smc.vnet.net*References*: <20130120062148.0CB436854@smc.vnet.net>

The correct name is AppendTo, not Appendto. You should start by defining the empty list rr, and then AppendTo rr consecutively, i.e.. In[4]:= rr={}; For[a=2,a<6,a++,For[b=2,b<6,b++,AppendTo[rr,a^b]]]In[5]:= rrOut[5]= {4,8,16,32,9,27,81,243,16,64,256,1024,25,125,625,3125} -TG > From: paolocach at gmail.com > Subject: problem with append > To: mathgroup at smc.vnet.net > Date: Sun, 20 Jan 2013 01:21:48 -0500 > > hello i am new to mathmatica.i have the following problem if anyone could help. > > For[a = 2, a < 6, a++, > For[b = 2, b < 6, b++, > Appendto[rr = {}, a^b]]] > rr > > but rr remains empty. how can i solve this > thank you >

**References**:**problem with append***From:*Paolo cachecho <paolocach@gmail.com>