3 ms·
Tuple creation and destructuring does not require parentheses in Python. w = 0, # w == (0,) (x) = (0,) # x == (0,) y, = 0, # y == 0
by nayuki 3y ago
Tuple creation and destructuring does not require parentheses in Python.
w = 0, # w == (0,)
(x) = (0,) # x == (0,)
y, = 0, # y == 0
(z,) = (0,) # z == 0
Though in Rust, parentheses are required for tuple creation and destructuring.