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.

Learn More

How to create a tuple in Python

  1. Open your Python file or editor.
  2. 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