Computer >> Computer tutorials >  >> Programming >> Python

How to create an empty tuple in Python?


You can create empty tuple object by giving no elements in parentheses in assignment statement. Empty tuple object is also created by tuple() built-in function without any arguments

>>> T1 = ()
>>> T1
()
>>> T1 = tuple()
>>> T1
()