On 05/01/2014 07:09, Keith Winston wrote:

Thanks all, interesting. I'll play more with tuples, I haven't knowingly
used them at all...

Keith


Homework for you :) Write a line of code that creates a list of say 3 or 4 integers, then write a line that creates a tuple with the same integers. Use the dis module to compare the byte code that the two lines of code produce. The difference is interesting.

--
My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language.

Mark Lawrence

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to