Open main menu
python-fiddle.com
Packages
Tools
Learning
AI Data Analyst
Sign In
Packages
Tools
Learning
AI Data Analyst
Chrome Extension
Sign In
0 out of 464 challenges solved
Python coding challenges on lists
Write code online and to get instant feedback on your progress with automated tests
☐
Add Tuple to List
Beginner
lists
functions
☐
Check Empty Dictionaries
Beginner
lists
dictionaries
☐
Check if List is Sorted
Beginner
lists
functions
conditionals
☐
Check List Elements
Beginner
lists
functions
conditionals
☐
Check Single Distinct Element
Beginner
lists
functions
sets
☐
Check Unique Elements
Beginner
lists
functions
sets
☐
Count Integer Elements
Beginner
lists
functions
loops
☐
Count Nested Lists
Beginner
lists
functions
loops
☐
Count Number Occurrences
Beginner
lists
loops
functions
☐
Count Positive Numbers
Beginner
lists
loops
conditionals
☐
Count True Booleans
Beginner
lists
☐
Create Tuple from List and String
Beginner
lists
strings
functions
☐
Difference Between Max and Min
Beginner
lists
functions
math
☐
Drop the first n elements from a sequence
Beginner
lists
☐
Exclude the first and last items in a list
Beginner
lists
☐
Extract First Element of Sublists
Beginner
lists
functions
☐
Extract Rear Elements
Beginner
lists
☐
Filter Negative Numbers
Beginner
lists
conditionals
functions
☐
Filter Odd Integers
Beginner
lists
functions
conditionals
☐
Filter Odd Numbers
Beginner
functions
lists
☐
Find Cubes in List
Beginner
functions
lists
☐
Find Even Numbers
Beginner
functions
lists
☐
Find Smallest Number
Beginner
lists
functions
☐
Generate List of Empty Dictionaries
Beginner
lists
☐
Double each number in a list
Beginner
loops
lists
☐
Order a list of strings in alphabetical order
Beginner
loops
lists
☐
Remove Odd Numbers from List
Beginner
lists
functions
loops
conditionals
☐
Replace Last Element with List
Beginner
lists
functions
☐
Split List into Two Parts
Beginner
lists
functions
☐
Square Elements in List
Beginner
functions
lists
☐
String to List Split
Beginner
strings
lists
functions
☐
Sum Corresponding Elements
Beginner
lists
☐
Sum of Largest and Smallest in Array
Beginner
lists
functions
☐
Swap First and Last Elements
Beginner
lists
functions
☐
Take the first n elements from a sequence
Beginner
lists
☐
Adjacent Coordinates Extraction
Intermediate
lists
recursion
☐
Append List to Tuple
Intermediate
lists
☐
Apply Format to List
Intermediate
strings
lists
☐
Array Intersection
Intermediate
lists
☐
Average Values from Tuple of Tuples
Intermediate
lists
math
☐
Check Consecutive Numbers
Intermediate
lists
☐
Check Duplicates in Array
Intermediate
lists
sets
functions
conditionals
☐
Check Equal Tuple Lengths
Intermediate
lists
loops
functions
☐
Check Even Indices for Even Numbers
Intermediate
lists
conditionals
loops
☐
Check Monotonic Array
Intermediate
lists
functions
☐
Check Odd Index Odd Numbers
Intermediate
lists
conditionals
functions
☐
Check Pattern Sequence
Intermediate
functions
lists
dictionaries
☐
Check Product Evenness
Intermediate
lists
conditionals
☐
Check Sublist in List
Intermediate
lists
loops
☐
Check Substring in List
Intermediate
strings
lists
functions
conditionals
☐
Common Elements in Lists
Intermediate
lists
functions
conditionals
☐
Common Elements in Nested Lists
Intermediate
lists
sets
☐
Consecutive Pairs in List
Intermediate
lists
loops
☐
Convert List Elements to Floats
Intermediate
lists
loops
☐
Convert Lists to Nested Dictionary
Intermediate
lists
dictionaries
zip
☐
Count Array Inversions
Intermediate
lists
loops
☐
Count Array Rotations
Intermediate
lists
☐
Count the frequency of each element in the given list
Intermediate
loops
lists
☐
Count Elements in Tuple
Intermediate
lists
functions
☐
Count Identical Items in Three Lists
Intermediate
lists
loops
zip
☐
Count List Occurrences
Intermediate
lists
dictionaries
loops
☐
Count Lists in Tuple
Intermediate
lists
loops
☐
Count Matching Indices
Intermediate
lists
loops
☐
Count Pairs with Sum
Intermediate
lists
loops
functions
☐
Count Sublists Containing Element
Intermediate
lists
loops
functions
☐
Count Unequal Pairs
Intermediate
lists
loops
functions
☐
Count XOR Even Pairs
Intermediate
lists
loops
☐
Cumulative Sum of Tuple List
Intermediate
lists
functions
loops
☐
Difference of First Even and Odd
Intermediate
functions
lists
loops
conditionals
☐
Divisible by Own Digits
Intermediate
lists
math
☐
Element Frequency Dictionary
Intermediate
lists
dictionaries
☐
Element Search in Array
Intermediate
lists
functions
☐
Element-wise List Division
Intermediate
lists
functions
☐
Element-wise List Subtraction
Intermediate
lists
functions
☐
Extract Last Character from Tuple
Intermediate
strings
lists
☐
Extract nth Element from Tuples
Intermediate
lists
☐
Extract Strings by Length
Intermediate
lists
strings
☐
Find First Odd Number
Intermediate
lists
loops
conditionals
☐
Find Long Words
Intermediate
strings
lists
functions
☐
Find Longest List Element
Intermediate
lists
functions
☐
Find Longest List
Intermediate
lists
loops
☐
Find Max in Heterogeneous List
Intermediate
lists
functions
☐
Find Max Length List
Intermediate
lists
functions
loops
☐
Find Minimum in Heterogeneous List
Intermediate
lists
functions
☐
Find Minimum K Records
Intermediate
lists
functions
☐
Find Minimum Length Sublist
Intermediate
lists
functions
☐
Find Minimum Tuple Value
Intermediate
lists
functions
☐
Find N Largest Integers
Intermediate
lists
☐
Find Shared Elements
Intermediate
lists
sets
functions
☐
Find Tuples Divisible by K
Intermediate
lists
☐
Find Words Starting with 'P'
Intermediate
strings
regex
lists
functions
☐
Flatten and Sum List
Intermediate
recursion
lists
functions
☐
Flatten List to Set
Intermediate
lists
sets
loops
☐
Flatten Nested List
Intermediate
lists
recursion
loops
☐
Frequency of Elements in List
Intermediate
lists
dictionaries
☐
Generate Combinations with Repetition
Intermediate
lists
☐
Group elements by applying a function to each element
Intermediate
lists
☐
Group Tuples by First Element
Intermediate
lists
dictionaries
loops
☐
Insert Element Before Each
Intermediate
lists
loops
☐
Interleave Three Lists
Intermediate
lists
☐
Interleave an arbitrary number of lists
Intermediate
lists
☐
Join Integers into Single Integer
Intermediate
strings
lists
☐
Find Kth Element in Array
Intermediate
lists
☐
Find Largest Negative Number
Intermediate
lists
loops
conditionals
☐
Largest Number from Digits
Intermediate
lists
☐
Largest Products from Two Lists
Intermediate
lists
☐
Left Insertion Point
Intermediate
lists
☐
Combine two lists by summing corresponding elements
Intermediate
comprehension
lists
☐
Find common elements between two lists
Intermediate
sets
lists
☐
List Difference Function
Intermediate
lists
functions
☐
Filter a list to include only the positive numbers
Intermediate
comprehension
lists
☐
Filter a list using the given function
Intermediate
lists
functional-programming
☐
Map a function to each element in a list
Intermediate
lists
functional-programming
☐
Reduce a list to a single value
Intermediate
lists
functional-programming
☐
Sort students by age
Intermediate
loops
lists
☐
Square the even numbers in a list
Intermediate
comprehension
lists
☐
Longest Sublists Length
Intermediate
lists
functions
loops
☐
Longest Word Length
Intermediate
strings
lists
functions
loops
☐
Max Absolute Product Tuples
Intermediate
functions
lists
math
☐
Max Difference in Pairs
Intermediate
lists
functions
loops
☐
Find Item with Maximum Frequency
Intermediate
lists
☐
Max of N'th Column
Intermediate
lists
functions
☐
Find Pair with Maximum Product
Intermediate
lists
loops
functions
☐
Find List with Maximum Sum
Intermediate
lists
functions
☐
Maximum Difference in Array
Intermediate
lists
functions
loops
☐
Merge Three Sorted Lists
Intermediate
lists
☐
Find Minimum Difference in Array
Intermediate
lists
☐
Minimum Product from Tuple Pairs
Intermediate
functions
lists
math
☐
Move Zeroes to End
Intermediate
lists
☐
Multiply and Divide List
Intermediate
lists
math
functions
☐
Find N Largest Items
Intermediate
lists
☐
Compute n-th Power of List Elements
Intermediate
functions
lists
☐
Pack Consecutive Duplicates
Intermediate
lists
loops
☐
Pancake Sort List
Intermediate
lists
☐
Partition a sequence into sublists
Intermediate
lists
☐
Positive Ratio in Array
Intermediate
lists
math
functions
loops
☐
Product of First Even and Odd
Intermediate
lists
loops
conditionals
☐
Rearrange Array: Negatives First
Intermediate
lists
☐
Remove Consecutive Duplicates
Intermediate
lists
loops
☐
Remove Duplicates from Lists
Intermediate
lists
functions
☐
Remove Elements from List
Intermediate
lists
☐
Remove k'th Element
Intermediate
lists
☐
Reverse Array Up to Position
Intermediate
lists
functions
☐
Reverse Strings in List
Intermediate
strings
lists
☐
Right Insertion Point
Intermediate
lists
☐
Rotate List Right
Intermediate
lists
functions
☐
Find Second Smallest Number
Intermediate
lists
functions
☐
Find Smallest List Length
Intermediate
lists
functions
loops
☐
Find Smallest Missing Number
Intermediate
recursion
lists
☐
Sort List Elements
Intermediate
functions
lists
☐
Sort Numeric Strings
Intermediate
lists
strings
☐
Sort Sublists of Strings
Intermediate
lists
functions
☐
Sort Tuples by Second Value
Intermediate
lists
☐
Split List and Rearrange
Intermediate
lists
functions
☐
Split List by Step
Intermediate
lists
loops
☐
Split List into Two Lists
Intermediate
lists
functions
zip
☐
Sum Even Numbers at Even Positions
Intermediate
lists
loops
conditionals
☐
Sum Length of Uppercase Names
Intermediate
lists
strings
☐
Sum Non-Repeated Elements
Intermediate
lists
loops
conditionals
☐
Sum of Digits in List
Intermediate
lists
☐
Sum of List Range
Intermediate
lists
loops
functions
☐
Trim Tuples by K
Intermediate
lists
functions
☐
Find Unique Element in Sorted Array
Intermediate
lists
☐
Find unique elements in a given list
Intermediate
sets
lists
☐
Unique Product Calculation
Intermediate
lists
functions
sets
loops
☐
Count Unique Tuples
Intermediate
lists
sets
functions
☐
Zero to Non-Zero Ratio
Intermediate
lists
loops
conditionals
math
☐
Apply a function to corresponding elements of multiple lists
Intermediate
lists
functional-programming
☐
Check Majority Element
Advanced
lists
☐
Find common elements across multiple lists
Advanced
sets
lists
☐
Find Kth Element from Two Sorted Arrays
Advanced
lists
☐
Largest Sum in Repeated Array
Advanced
lists
☐
Generate Lucid Numbers
Advanced
math
lists
☐
Maximum Sum of Bitonic Subsequence
Advanced
lists
☐
Maximum Product Subarray
Advanced
lists
math
☐
Median of Two Sorted Lists
Advanced
lists
math
Looking for more?
Newbie
Beginner
Intermediate
Advanced
errors
loops
lists
conditionals
dictionaries
strings
functions
comprehension
regex
math
sets
functional-programming
enumerate
functools
files
zip
CSV
recursion
matrices