Syntax
Python Create a Tuple Syntax
In Python, create a tuple: creates an immutable sequence — point = (1, 2)
Quick Answer
- Syntax
point = (1, 2)
PythonSyntax
Create a Tuple
Code example
point = (1, 2)
Creates an immutable sequence.
How to create a tuple in Python
- Open your Python file or editor.
- Copy the example, then replace its sample names and values for your code.
Python Create a Tuple Syntax
Use point = (1, 2).
Related Syntax References
Frequently asked questions
What is the Python syntax for create a tuple?
Use this pattern: point = (1, 2)
Can I copy this Python code example?
Yes. Use Copy code and adapt the example to your program.
Is this Python syntax different on Mac or Windows?
No. The language syntax is the same across operating systems.
Official source · How we verify