0):
+ operator to concatenate two tuples. Example:
x[1] = "a" is not supported.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
The new site is online! Please use this issue to report any problems.
x = (1, 2, 3)
0):
e = x[1] # e == 2
+ operator to concatenate two tuples. Example:
x = (1, 2) + (3, 4) # x == (1, 2, 3, 4)
x = ("a", "b")
x += ("c",) # x == ("a", "b", "c")
('a', 'b', 'c', 'd')[1:3] # ('b', 'c')
('a', 'b', 'c', 'd')[::2] # ('a', 'c')
('a', 'b', 'c', 'd')[3:0:-1] # ('d', 'c', 'b')
x[1] = "a" is not supported.