Home »
Python »
Python Tuples MCQs
What will be the output of the following code? | Tuples Que. 10
10. What will be the output of the following code?
tuple1 = ("tuple")
print(type(tuple1))
- <class 'str'>
- <class 'tuple'>
- Error
Answer: A) <class 'str'>
Explanation:
If you will create a single element tuple without a comma it will be considered a string.