Python Exercise: Create a tuple with different data types
Python tuple: Exercise-2 with Solution
Write a Python program to create a tuple with different data types.
>>> #Create a tuple with different data types >>> tuplex = ("tuple", False, 3.2, 1) >>> print(tuplex)
('tuple', False, 3.2, 1)
Python Code Editor:
Have another way to solve this solution? Contribute youe code (and comments) through Disqus.
New exercises: Matplotlib: Exercises, Practice, Solution