Home »
Python »
Python Tuples MCQs
Which of the following will show an error when creating a tuple?
9. Which of the following will show an error when creating a tuple?
- T1= "ram", "hello"," include help"
- T1=("ram",)
- T1=("ram")
- Three of them are correct
Answer: C) T1=("ram")
Explanation:
Among the given options, the third option is wrong. As to create a single element you have to put a comma after the element, else it would be a challenging job.