Python List Exercise Last Updated : 09 Sep, 2025 Comments Improve Suggest changes Like Article Like Report List OperationsAccess List ItemChange List itemReplace List ValuesAppend MethodInsert MethodExtend List ItemRemove List Item Clear entire ListCoding Problems on List OperationsList TraversalLength of The ListSum The ListDecrement List ValuesAppend To ListBasic List programsMax of two numbersFind Length of ListMin of two numbersInterchange first and last elementSwap two elementCheck if element exists Reverse a ListCloning or Copying a ListCount element in a ListSum and Average of ListSum of digits in a ListMultiply all numbers in a ListSmallest number in a ListLargest number in a ListSecond largest number in a ListEven numbers in a ListOdd numbers in a ListCount Even and Odd Numbers in a ListPositive numbers in a ListNegative numbers in a ListCount positive and negative numbers in a ListRemove multiple elements from a List Remove empty tuples from a ListPrint duplicates from a list of integersRemove first element from List Remove duplicates from ListGet Unique values from a ListMerge Two ListsIterate over a List Average of a List Append at beginning of ListIntersection of two ListsSelect random value from a ListCheck if two Lists are IdenticalGet last element of ListRemove None values from ListPrint common elements of two listsMax and Min element's position in a ListUnion of two or more ListsBasic Coding Problems on ListLess ThanAverageSeparate Even OddSecond Largest ElementThird largest elementThree Great CandidatesMove All Zeroes To EndPlus OneRemove Duplicates from Sorted ArrayArray LeadersCount DistinctUnion of Arrays with DuplicatesPrograms on List of StringsSwap elements in String listConvert List to StringReverse All Strings in String ListCharacter position of Kth wordExtract words starting with K Prefix frequency in string ListSplit String of list on KSplit Strings on Prefix OccurrenceRemove words containing list charactersRemove multiple empty spaces from String ListAdd Space between Potential WordsConvert Character Matrix to single StringFilter strings by substring match in second ListReplace all chars in list except given oneConverting all Strings in a list to integersConvert String Representation of a List into ListPrograms on List of ListsRemove empty List from ListConvert List to List of dictionariesConvert Lists of List to DictionaryUncommon elements in Lists of ListSelect Random value from list of listsReverse Row sort in Lists of ListPair elements with Rear element in Matrix RowPrograms on SubString and SubListsCount Strings with substringTest if Substring occurs in specific positionReplace Substrings from String ListRemove Reduntant Substrings from Strings ListGroup Sublists by another ListSort String by Custom Integer SubstringsFinding strings with given substring in ListRemove all values from a list present in another ListPrint all sublists of a ListCoding Problems on Substring and SublistsReverse Array in GroupsMaximum Product SubarraySplit array in three equal sum subarraysLongest Bitonic subsequenceCount Subarrays with K Distinct ElementsAdvance List ProgramsCount unique items in a listList product excluding duplicatesExtract elements with Frequency greater than KTest if List contains elements in RangeCheck if list contains three consecutive common numbersFind Strongest NeighbourPossible Combinations from three DigitsFind all Combinations in list with given conditionGet all unique combinations of two ListsRemove all occurrences of an element from a listRemove Consecutive K element recordsReplace index elements with elements in Other ListRetain records with N occurrences of KSort list according to column using lambdaCreate list of numbers with given rangeCheck if a given object is a list or NotBreak a list into chunks of size NGet last N elements from given listGet all unique combinations of two listsAdvance Coding Problems on List Not a subset sumMinimum JumpsSmallest Missing Positive NumberTrapping Rain WaterAlternate Positive NegativeMax distance between same elementsTransform and Sort ArrayMaximize Number of 1'sProduct Array Puzzle List Methods and Exercises Comment More infoAdvertise with us A abhishek1 Follow Improve Article Tags : Python python-list Python list-programs Explore Python FundamentalsPython Introduction 3 min read Input and Output in Python 4 min read Python Variables 5 min read Python Operators 5 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 7 min read Python Functions 5 min read Recursion in Python 6 min read Python Lambda Functions 5 min read Python Data StructuresPython String 5 min read Python Lists 5 min read Python Tuples 4 min read Dictionaries in Python 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 6 min read File Handling in Python 4 min read Python Database Tutorial 4 min read Python MongoDB Tutorial 2 min read Python MySQL 9 min read Python Packages 12 min read Python Modules 7 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 6 min read Matplotlib Tutorial 5 min read Python Seaborn Tutorial 15+ min read StatsModel Library- Tutorial 4 min read Learning Model Building in Scikit-learn 8 min read TensorFlow Tutorial 2 min read PyTorch Tutorial 7 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 7 min read Python | Build a REST API using Flask 3 min read How to Create a basic API using Django Rest Framework ? 4 min read Python PracticePython Quiz 3 min read Python Coding Practice 1 min read Python Interview Questions and Answers 15+ min read Like