June 2017
Beginner
352 pages
8h 39m
English
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)
Read now
Unlock full access