Language Delimiters
] — right bracket
Closes a list display or subscription. A slice expression inside matching brackets can select a subsequence.
Formal Syntax & Structure
python syntaxpython
]Return Value
Not applicable
Grammar token; the enclosing construct determines any result.
Working Example
Example Snippetpython
values = [10, 20, 30]print(values[1:])