Single Choice
Not Set
QWhat is the output of the following tuple operation
aTuple = (100,)
print(aTuple * 2)
ID: #3717
Python Tuple MCQ
211 views
Question Info
#3717Q ID
Not SetDifficulty
Python Tuple MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
We can use * operator to repeat the tuple values n number of times.
For example:
("abc",)*3will return('abc', 'abc', 'abc')
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic