Python Exercise: Create a tuple
Python tuple: Exercise-1 with Solution
Write a Python program to create a tuple.
>>> #Create an empty tuple >>> x = () >>> print(x) >>> #Create an empty tuple with tuple() function built-in Python >>> tuplex = tuple() >>> print(tuplex)
Python Code Editor:
Improve this sample solution and post your code through Disqus