Literal tuples

Tuples have a similar literal syntax to lists, except that they are delimited by parentheses rather than square brackets. Here is a literal tuple containing a string, a float and an integer:

>>> t = ("Norway", 4.953, 3)
>>> t
('Norway', 4.953, 3)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset