Member-only story

Python Programming Language: Tuple Functions

Jesse L
Sep 19, 2021

--

Hi everyone, welcome back. Tuples are a data structure in the Python language capable of storing several items in a singular tuple variable. Tuples are a build in data type in Python and we will go over functions regarding tuples. For a more in depth tutorial on Tuples in Python, click here.

Tuple Methods

  • count(): returns the number of how many times a given item appears in the tuple
  • index(): returns the index number of where a given item is found within the tuple

--

--

Jesse L
Jesse L

Written by Jesse L

Hi, I'm a passionate technology enthusiast and lifelong learner. Beyond my technical pursuits, I'm also passionate about sharing my enthusiasm with others.

No responses yet