Write a Python program to create a tuple


The program is written in Python and performs the following steps:

  • An empty tuple a is created using parentheses ().
  • The a tuple is printed to the console.
  • An empty tuple b is created using the tuple() constructor.
  • The b tuple is printed to the console.

Source Code

a = ()
print(a)
b = tuple()
print(b)

Output

()
()

Example Programs