x = a list x[2] a tuple try print x[2] also see http://docs.python.org/tutorial/datastructures.html
2011/3/11 nik <[email protected]> > Hi, i am new in python programming and i tried to use the online > Interactive server-side Python shell (http://shell.appspot.com) to > test the list data type and while it supposed to be changeable, this > is not the way is treated: > > >>> x=[2,5,6] > >>> x[2]='111' > >>> print x > [2, 5, 6] > > x[2] wasn't supposed to change? if so then is this a bug of the online > shell or it is the way that any deployed application in app engine is > treated? > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- gr, Wim den Ouden Custom Google App Engine <http://code.google.com/intl/nl/appengine/> based webapps <https://neighborshare.appspot.com/>. Free open source neighborshare framework <http://code.google.com/p/relat/>. Gae tips <http://code.google.com/p/relat/wiki/gaetips> Datastore (async)<http://code.google.com/p/relat/wiki/gaetips?ts=1299673682&updated=gaetips#Datastore_plus_(async)> -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
