Login and Register ×
Check your Email for the OTP
Python Programming Language MCQ Python Tuple MCQ
⚠ Report ✓ Question Verified Copy Link
aTuple = ("Orange") print(type(aTuple))
Explanation:
To create a tuple with a single item, you need to add a comma after the item. Otherwise, Python will not recognize the variable as a tuple, and it will treat it as a string type.
For example:
aTuple = ("Orange") print(type(aTuple)) bTuple = ("Orange",) print(type(bTuple))
Output
Related Topic:
Share Above MCQ
Learn More MCQ Questions from Python Programming Language MCQ Python Tuple MCQ