VOOZH
about
URL: https://www.geeksforgeeks.org/python/python-list-exercise/
⇱ Python List Exercise - GeeksforGeeks
👁 geeksforgeeks
Courses
Tutorials
Interview Prep
Python Tutorial
Data Types
Interview Questions
Examples
Quizzes
DSA Python
Data Science
NumPy
Pandas
Practice
Django
Flask
Python List Exercise
Last Updated :
9 Sep, 2025
List Operations
Access List Item
Change List item
Replace List Values
Append Method
Insert Method
Extend List Item
Remove List Item
Clear entire List
Coding Problems on List Operations
List Traversal
Length of The List
Sum The List
Decrement List Values
Append To List
Basic List programs
Max of two numbers
Find Length of List
Min of two numbers
Interchange first and last element
Swap two element
Check if element exists
Reverse a List
Cloning or Copying a List
Count element in a List
Sum and Average of List
Sum of digits in a List
Multiply all numbers in a List
Smallest number in a List
Largest number in a List
Second largest number in a List
Even numbers in a List
Odd numbers in a List
Count Even and Odd Numbers in a List
Positive numbers in a List
Negative numbers in a List
Count positive and negative numbers in a List
Remove multiple elements from a List
Remove empty tuples from a List
Print duplicates from a list of integers
Remove first element from List
Remove duplicates from List
Get Unique values from a List
Merge Two Lists
Iterate over a List
Average of a List
Append at beginning of List
Intersection of two Lists
Select random value from a List
Check if two Lists are Identical
Get last element of List
Remove None values from List
Print common elements of two lists
Max and Min element's position in a List
Union of two or more Lists
Basic Coding Problems on List
Less Than
Average
Separate Even Odd
Second Largest Element
Third largest element
Three Great Candidates
Move All Zeroes To End
Plus One
Remove Duplicates from Sorted Array
Array Leaders
Count Distinct
Union of Arrays with Duplicates
Programs on List of Strings
Swap elements in String list
Convert List to String
Reverse All Strings in String List
Character position of Kth word
Extract words starting with K
Prefix frequency in string List
Split String of list on K
Split Strings on Prefix Occurrence
Remove words containing list characters
Remove multiple empty spaces from String List
Add Space between Potential Words
Convert Character Matrix to single String
Filter strings by substring match in second List
Replace all chars in list except given one
Converting all Strings in a list to integers
Convert String Representation of a List into List
Programs on List of Lists
Remove empty List from List
Convert List to List of dictionaries
Convert Lists of List to Dictionary
Uncommon elements in Lists of List
Select Random value from list of lists
Reverse Row sort in Lists of List
Pair elements with Rear element in Matrix Row
Programs on SubString and SubLists
Count Strings with substring
Test if Substring occurs in specific position
Replace Substrings from String List
Remove Reduntant Substrings from Strings List
Group Sublists by another List
Sort String by Custom Integer Substrings
Finding strings with given substring in List
Remove all values from a list present in another List
Print all sublists of a List
Coding Problems on Substring and Sublists
Reverse Array in Groups
Maximum Product Subarray
Split array in three equal sum subarrays
Longest Bitonic subsequence
Count Subarrays with K Distinct Elements
Advance List Programs
Count unique items in a list
List product excluding duplicates
Extract elements with Frequency greater than K
Test if List contains elements in Range
Check if list contains three consecutive common numbers
Find Strongest Neighbour
Possible Combinations from three Digits
Find all Combinations in list with given condition
Get all unique combinations of two Lists
Remove all occurrences of an element from a list
Remove Consecutive K element records
Replace index elements with elements in Other List
Retain records with N occurrences of K
Sort list according to column using lambda
Create list of numbers with given range
Check if a given object is a list or Not
Break a list into chunks of size N
Get last N elements from given list
Get all unique combinations of two lists
Advance Coding Problems on List
Not a subset sum
Minimum Jumps
Smallest Missing Positive Number
Trapping Rain Water
Alternate Positive Negative
Max distance between same elements
Transform and Sort Array
Maximize Number of 1's
Product Array Puzzle
Comment
Article Tags:
Article Tags:
Python
python-list
Python list-programs
Explore
Python Fundamentals
Introduction
1 min read
Input & Output
2 min read
Variables
4 min read
Operators
4 min read
Keywords
2 min read
Data Types
4 min read
Conditional Statements
3 min read
Loops
3 min read
Functions
4 min read
Python Data Structures
String
4 min read
List
3 min read
Tuples
3 min read
Dictionary
3 min read
Set
5 min read
Arrays
5 min read
Advanced Python
OOP Concepts
3 min read
Exception Handling
5 min read
File Handling
4 min read
Python Database
4 min read
MongoDB
3 min read
MySQL
7 min read
Packages
4 min read
Modules
3 min read
DSA Libraries
5 min read
Python GUI
2 min read
Data Science with Python
Numpy
3 min read
Pandas
4 min read
Matplotlib
3 min read
Seaborn
3 min read
StatsModel
2 min read
Model Building
6 min read
TensorFlow
2 min read
PyTorch
5 min read
Web Development with Python
Flask
3 min read
Django
5 min read
Django ORM
4 min read
Jinja2 Templating
5 min read
Django Templates
5 min read
REST API
3 min read
Build API with DRF
4 min read
Python Practice
Quiz
1 min read
Practice Problems
1 min read
Interview Q & A
15+ min read
Python Courses
Python Programming Course
2 min read
Data Analytics Course with AI
2 min read
Tech Interview 101 Course | DSA and System Design
2 min read