Python - Accessing nth element from tuples in list Last Updated : 11 Jul, 2025 Comments Improve Suggest changes 5 Likes Like Report We are given tuples in list we need to access Nth elements from tuples. For example, we are having a list l = [(1, 2), (3, 4), (5, 6)] we need to access the Nth element from tuple suppose we need to access n=1 or 1st element from every tuple present inside list so that in this case the output should be [2, 4, 6].Using IndexingTo access the nth element from tuples in a list use indexing to refer to both tuple and element first index accesses tuple and second index accesses the element within tuple. Python l = [(1, 2), (3, 4), (5, 6)] n = 1 # Use list comprehension to extract the nth element from each tuple r = [t[n] for t in l] print(r) Output[2, 4, 6] Explanation:Code uses list comprehension to iterate over each tuple in list l and extracts the nth element from each tuple by indexing t[n].Result is a new list r that contains nth element from each tuple.Using List ComprehensionList comprehension is used to iterate through each tuple in list and access the nth element. It generates a new list with nth element from each tuple. Python l = [(1, 2), (3, 4), (5, 6)] n = 1 # Use list comprehension to extract the nth element from each tuple r = [t[n] for t in l] print(r) Output[2, 4, 6] Explanation:Code uses list comprehension to iterate through each tuple in the list l and extract the element at index n (which is 1) from each tuple.It creates a new list r containing extracted elements.Using map()map() function in Python applies a given function to each item of an iterable and returns an iterator containing the results. When working with a list of tuples. Python a = [(1, 2), (3, 4), (5, 6)] n = 1 # Use map() to extract the nth element from each tuple res = list(map(lambda t: t[n], a)) print(res) Output[2, 4, 6] Explanation:map() function applies a lambda function to each tuple in the list a, extracting the element at index n (in this case, the second element of each tuple).list() function converts the mapped result into a list, resulting in [2, 4, 6] which contains the second elements from all tuples. Create Quiz Comment M manjeet_04 Follow 5 Improve M manjeet_04 Follow 5 Improve Article Tags : Python python-list python-tuple Python list-programs Explore Python FundamentalsPython Introduction 2 min read Input and Output in Python 4 min read Python Variables 4 min read Python Operators 4 min read Python Keywords 2 min read Python Data Types 8 min read Conditional Statements in Python 3 min read Loops in Python - For, While and Nested Loops 5 min read Python Functions 5 min read Recursion in Python 4 min read Python Lambda Functions 5 min read Python Data StructuresPython String 5 min read Python Lists 4 min read Python Tuples 4 min read Python Dictionary 3 min read Python Sets 6 min read Python Arrays 7 min read List Comprehension in Python 4 min read Advanced PythonPython OOP Concepts 11 min read Python Exception Handling 5 min read File Handling in Python 4 min read Python Database Tutorial 4 min read Python MongoDB Tutorial 3 min read Python MySQL 9 min read Python Packages 10 min read Python Modules 3 min read Python DSA Libraries 15 min read List of Python GUI Library and Packages 3 min read Data Science with PythonNumPy Tutorial - Python Library 3 min read Pandas Tutorial 4 min read Matplotlib Tutorial 5 min read Python Seaborn Tutorial 3 min read StatsModel Library - Tutorial 3 min read Learning Model Building in Scikit-learn 6 min read TensorFlow Tutorial 2 min read PyTorch Tutorial 6 min read Web Development with PythonFlask Tutorial 8 min read Django Tutorial | Learn Django Framework 7 min read Django ORM - Inserting, Updating & Deleting Data 4 min read Templating With Jinja2 in Flask 6 min read Django Templates 5 min read Build a REST API using Flask - Python 3 min read Building a Simple API with Django REST Framework 3 min read Python PracticePython Quiz 1 min read Python Coding Practice 1 min read Python Interview Questions and Answers 15+ min read Like