Python Tuples

Main.PythonTuples History

Hide minor edits - Show changes to markup

May 01, 2007, at 11:19 AM EST by jza -
Changed lines 5-7 from:
  • Tuples are immutable, so that means they can't be change them.
  • We use parenthesis instead of brackets.
  • Tuple will be separated by commas.
to:
  • Tuples are immutable, so that means they can't be change the values.
  • We use parenthesis instead of brackets.
  • Tuple will be separated by commas.
  • Tuples have heterogeneous elements, so they can be from any type. example:
>>> myTuple = ('text', 2, a['1',0,'blah'])
>>> myTuple
('text', 2, a['1',0,'blah'])
  • We can omit the wrapping delimiters

April 30, 2007, at 10:20 PM EST by jza -
Changed lines 4-7 from:

[*] Very similar to lists [*] Tuples are immutable, so that means they can't be change them. [*] We use parenthesis instead of brackets. [*] Tuple will be separated by commas.

to:
  • Very similar to lists
  • Tuples are immutable, so that means they can't be change them.
  • We use parenthesis instead of brackets.
  • Tuple will be separated by commas.
April 30, 2007, at 10:19 PM EST by jza -
Changed lines 1-7 from:
  • Recording on Tuples
to:
  • Recording on Tuples

Description

[*] Very similar to lists [*] Tuples are immutable, so that means they can't be change them. [*] We use parenthesis instead of brackets. [*] Tuple will be separated by commas.

April 24, 2007, at 08:28 AM EST by jza -
Added line 1:
  • Recording on Tuples