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 timesappears using the
101method..count() - Print the index of the very first appearance ofusing the
104method..index()
main.py
main.py
Ctrl + Enter