Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Sign In
▲
Similar Topics
Python
20.5k+ articles
Python Programs
4k+ articles
Python list-programs
1.6k+ articles
Python dictionary-programs
570+ articles
Python string-programs
560+ articles
python-list
410+ articles
Python matrix-program
64 articles
Python-sort
54 articles
Python-Sorted
14 articles
Python-Matrix
14 articles
Python-list-of-lists
25 posts
Popular Articles
Recent Articles
Indexing Lists Of Lists In Python
Last Updated: 02 January 2025
Lists of lists, also known as nested lists or sometimes 2D lists, are powerful structures in Python for managing multi-dimensional data such
...read more
Python
Python Programs
python-list
Picked
Python-list-of-lists
Iterate Over a List of Lists in Python
Last Updated: 22 April 2025
We are given a list that contains multiple sublists, and our task is to iterate over each of these sublists and access their elements. For e
...read more
Python
Python Programs
Picked
Python-list-of-lists
Sorting List of Lists with First Element of Each Sub-List in Python
Last Updated: 06 February 2024
In Python, sorting a list of lists by the first element of each sub-list is a common task. Whether you're dealing with data points, coordina
...read more
Python
Python Programs
Picked
python-list-functions
Python-list-of-lists
python sorting-exercises
Similar Topics
Python
20.5k+ articles
Python Programs
4k+ articles
Python list-programs
1.6k+ articles
Python dictionary-programs
570+ articles
Python string-programs
560+ articles
python-list
410+ articles
Python matrix-program
64+ articles
Python-sort
54+ articles
Python-Sorted
14+ articles
Python-Matrix
14+ articles
Python Tips and Tricks for Competitive Programming
Last Updated: 19 August 2021
Python Programming language makes everything easier and straightforward. Effective use of its built-in libraries can save a lot of time and
...read more
Competitive Programming
Python-Library
Python Programs
python-list
python-map
Python-itertools
Python-list-of-lists
DSA
How to iterate through a nested List in Python?
Last Updated: 13 December 2024
A nested list is a list that contains other lists. Working with nested lists can seem tricky at first but it becomes easy once we understand
...read more
Python
Python Programs
python-list
Python-list-of-lists
Python - Group similar elements into Matrix
Last Updated: 15 May 2023
Sometimes, while working with Python Matrix, we can have a problem in which we need to perform grouping of all the elements with are the sam
...read more
Python
Python Programs
Python list-programs
Python matrix-program
Python-list-of-lists
Python - Convert List of Dictionaries to List of Lists
Last Updated: 21 January 2025
We are given list of dictionaries we need to convert it to list of lists. For example we are given a list of dictionaries a = [{'name': 'Gee
...read more
Python
Python Programs
Python dictionary-programs
Python-list-of-lists
Python - Reverse Row sort in Lists of List
Last Updated: 22 February 2025
We are given a list of lists where each inner list represents a row and our task is to sort each row in descending order while keeping the o
...read more
Python
Python Programs
Python list-programs
Python-sort
Python-Matrix
Python-list-of-lists
Python - Group Sublists by another List
Last Updated: 20 February 2023
Sometimes, while working with lists, we can have a problem in which we need to group all the sublists, separated by elements present in diff
...read more
Python
Python Programs
Python list-programs
Python-list-of-lists
Python - Sum of different length Lists of list
Last Updated: 08 May 2023
Getting the sum of list is quite common problem and has been dealt with and discussed many times, but sometimes, we require to better it and
...read more
Python
Python Programs
Python list-programs
Python-list-of-lists
Python | Convert List of lists to list of Strings
Last Updated: 06 April 2023
Interconversion of data is very popular nowadays and has many applications. In this scenario, we can have a problem in which we need to conv
...read more
Python
Python Programs
Python list-programs
Python string-programs
Python-list-of-lists
Python | Merge List with common elements in a List of Lists
Last Updated: 22 February 2023
Given a list of list, we have to merge all sub-list having common elements. These type of problems are very frequent in College examinations
...read more
Python
Python list-programs
Python-list-of-lists
Python | Sorting list of lists with similar list elements
Last Updated: 17 April 2023
Sorting has always been a key operation that is performed for many applications and also as a subproblem to many problems. Many variations a
...read more
Python
Python Programs
Python list-programs
Python-sort
Python-list-of-lists
Python - Sort list of lists by the size of sublists
Last Updated: 17 January 2025
The problem is to sort a list of lists based on the size of each sublist. For example, given the list [[1, 2], [1], [1, 2, 3]], the sorted r
...read more
Python
Python Programs
python-list
Python list-programs
Python-sort
Python-list-of-lists
Sort List of Lists by Lexicographic Value and then Length - Python
Last Updated: 29 January 2025
In this problem, sorting a list of lists by lexicographic value and then length means arranging the sublists first by their natural order (l
...read more
Python
Python Programs
python-list
Python list-programs
Python-sort
Python-list-of-lists
1
2
>>
Last
1
2
>>
Last
1
2
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !