Back to Lesson

Nested Tuple Search

Use tuple methods to gather insights on a nested sequence.

Instructions

  • You have a tuple of server logs:
    (101, 102, 101, 103, 101, 104)
  • Print how many times
    101
    appears using the
    .count()
    method.
  • Print the index of the very first appearance of
    104
    using the
    .index()
    method.
main.py
main.py