Thursday , September 19 2024

The fact that tuples belong to sequence types means that:

Questions BankCategory: Python Essentials 1The fact that tuples belong to sequence types means that:
The fact that tuples belong to sequence types means that:

  • they can be indexed and sliced like lists
  • they can be extended using the .append() method
  • they can be modified using the del instruction
  • they are actually lists

Explanation: Tuples are immutable objects, so they can be indexed and sliced like lists. However, during runtime they cannot be extended or modified. They are NOT lists.

More Questions: Python Essentials 1 – Module 4 Test