What is the result of the following operation in Python? ('apple',) * 3

  • ('apple', 3)
  • ('apple', 'apple', 'apple')
  • ('apple',)
  • Error
The result of ('apple',) * 3 is a tuple containing three copies of the string 'apple'. The comma in ('apple',) is necessary to create a single-element tuple.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *