Open main menu
python-fiddle.com
Packages
Learning
AI Data Analyst
Sign In
Intermediate Python Coding Challenges
Write code and run it in real-time to get instant feedback on your progress.
0 of 464 solved
Sum Arbitrary Number of Arguments
Intermediate
functions
Add Dictionary to Tuple
Intermediate
dictionaries
Add Spaces Between Capital Words
Intermediate
strings
regex
Adjacent Coordinates Extraction
Intermediate
lists
recursion
Angle of Complex Number
Intermediate
math
functions
Append List to Tuple
Intermediate
lists
Apply Format to List
Intermediate
strings
lists
Armstrong Number Check
Intermediate
math
functions
conditionals
loops
Array Intersection
Intermediate
lists
Average Values from Tuple of Tuples
Intermediate
lists
math
Babylonian Square Root
Intermediate
math
functions
loops
Bitwise XOR Tuples
Intermediate
functions
loops
Calculate Power Recursively
Intermediate
recursion
functions
math
Calculate Wind Chill Index
Intermediate
math
functions
Check 'a' followed by 'bb' or 'bbb'
Intermediate
regex
Check Balanced Parentheses
Intermediate
strings
Check Bits Unset in Range
Intermediate
functions
conditionals
Check Consecutive Numbers
Intermediate
lists
Check Dictionary Values Uniformity
Intermediate
dictionaries
functions
loops
Check Duplicates in Array
Intermediate
lists
sets
functions
conditionals
Check Equal Tuple Lengths
Intermediate
lists
loops
functions
Check Even Divisors Count
Intermediate
math
functions
loops
conditionals
Check Even Indices for Even Numbers
Intermediate
lists
conditionals
loops
Check if String is Integer
Intermediate
strings
functions
Check Min Heap Array
Intermediate
Check Monotonic Array
Intermediate
lists
functions
Check Number Greater Than Array
Intermediate
Check Number Parity
Intermediate
functions
conditionals
Check Number Relation to Reverse
Intermediate
functions
loops
conditionals
math
Check Odd Index Odd Numbers
Intermediate
lists
conditionals
functions
Check One Bit Difference
Intermediate
Check Opposite Signs
Intermediate
conditionals
functions
Check Overlapping Sequences
Intermediate
functions
loops
conditionals
Check Pattern Sequence
Intermediate
functions
lists
dictionaries
Check Perfect Square
Intermediate
math
loops
conditionals
Check Prime Number
Intermediate
math
functions
conditionals
Check Product Evenness
Intermediate
lists
conditionals
Check String Start and End
Intermediate
strings
regex
Check String Starts with Vowel
Intermediate
regex
strings
Check Sublist in List
Intermediate
lists
loops
Check Substring in List
Intermediate
strings
lists
functions
conditionals
Check Tuple Element Comparison
Intermediate
loops
functions
Check Tuple Element Types
Intermediate
Check Undulating Number
Intermediate
Check Woodall Number
Intermediate
math
functions
conditionals
loops
Common Elements in Lists
Intermediate
lists
functions
conditionals
Common Elements in Nested Lists
Intermediate
lists
sets
Function Composition
Intermediate
functions
Concatenate Tuple Elements
Intermediate
strings
loops
Calculate Cone Volume
Intermediate
math
functions
Consecutive Pairs in List
Intermediate
lists
loops
Convert Complex to Polar
Intermediate
math
functions
Convert Date Format
Intermediate
Convert List Elements to Floats
Intermediate
lists
loops
Convert Lists to Nested Dictionary
Intermediate
lists
dictionaries
zip
Convert Tuple String to Integer Tuple
Intermediate
strings
Count Array Inversions
Intermediate
lists
loops
Count Array Rotations
Intermediate
lists
Count Characters Matching Alphabet Position
Intermediate
strings
loops
conditionals
Count Characters with Vowel Neighbors
Intermediate
strings
loops
conditionals
Count Divisors of Integer
Intermediate
functions
loops
math
Count Element Frequencies in a List
Intermediate
loops
lists
Count Elements Before Tuple
Intermediate
loops
conditionals
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 Non-Empty Substrings
Intermediate
strings
math
functions
Count Odd Binary Rotations
Intermediate
strings
loops
Count Odd XOR Pairs
Intermediate
loops
conditionals
Count Pairs with Sum
Intermediate
lists
loops
functions
Count Primes Less Than N
Intermediate
functions
loops
conditionals
math
Count Set Bits
Intermediate
loops
Count Sublists Containing Element
Intermediate
lists
loops
functions
Count Unequal Pairs
Intermediate
lists
loops
functions
Count XOR Even Pairs
Intermediate
lists
loops
Extract Columns from CSV
Intermediate
files
CSV
Cube Sum of Even Numbers
Intermediate
math
loops
functions
Cumulative Sum of Tuple List
Intermediate
lists
functions
loops
Calculate Cylinder Surface Area
Intermediate
math
functions
Filter a Dictionary to Even Values
Intermediate
comprehension
dictionaries
Square Dictionary Values
Intermediate
comprehension
dictionaries
Dictionary Depth Calculator
Intermediate
recursion
dictionaries
Difference of First Even and Odd
Intermediate
functions
lists
loops
conditionals
Difference of Two Squares Check
Intermediate
math
functions
conditionals
Digit Frequency Validation
Intermediate
functions
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 Tuple Division
Intermediate
loops
zip
Elementwise Bitwise AND Tuples
Intermediate
loops
Element-wise List Subtraction
Intermediate
lists
functions
Validate an Email Address
Intermediate
regex
strings
Calculate the exponential power of the given number
Intermediate
loops
math
Extract email addresses
Intermediate
regex
strings
Extract Last Character from Tuple
Intermediate
strings
lists
Extract nth Element from Tuples
Intermediate
lists
Extract Quoted Values
Intermediate
strings
regex
strings
Extract Strings by Length
Intermediate
lists
strings
Extract Values Between Quotes
Intermediate
strings
regex
Calculate the factorial of the given number
Intermediate
loops
math
Filter Dictionary by Value
Intermediate
dictionaries
Filter Students by Height and Weight
Intermediate
dictionaries
functions
Find common elements across multiple lists
Intermediate
sets
lists
Find Dissimilar Elements in Tuples
Intermediate
sets
functions
Find First Adverb
Intermediate
strings
regex
strings
Find First Adverb Position
Intermediate
regex
strings
Find First Occurrence Index
Intermediate
Find First Odd Number
Intermediate
lists
loops
conditionals
Find Long Words
Intermediate
strings
lists
functions
Find Longest List
Intermediate
lists
loops
Find Longest List Element
Intermediate
lists
functions
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 Perfect Squares
Intermediate
math
loops
functions
Find Shared Elements
Intermediate
lists
sets
functions
Find Third Side of Right Triangle
Intermediate
math
functions
Find Top N Expensive Items
Intermediate
Find Tuples Divisible by K
Intermediate
lists
Find Words Starting with 'P'
Intermediate
strings
regex
lists
functions
Find Words with Minimum Length
Intermediate
strings
regex
strings
First Non-Repeated Character
Intermediate
strings
loops
dictionaries
First Repeated Character
Intermediate
strings
loops
conditionals
Fix the error in Python code #13
Intermediate
errors
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
Geometric Sum Calculation
Intermediate
recursion
math
functions
Group elements by applying a function to each element
Intermediate
lists
Group Tuples by First Element
Intermediate
lists
dictionaries
loops
Harmonic Sum Calculation
Intermediate
recursion
math
functions
Heap Sort Implementation
Intermediate
Find Highest Power of 2
Intermediate
loops
math
Identify Non-Prime Numbers
Intermediate
math
functions
loops
conditionals
Index-wise Addition of Nested Tuples
Intermediate
loops
zip
Insert Element Before Each
Intermediate
lists
loops
Interleave an arbitrary number of lists
Intermediate
lists
Interleave Three Lists
Intermediate
lists
Calculate Jacobsthal Number
Intermediate
recursion
math
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
Largest Triangle Inscribed in Semicircle
Intermediate
functions
math
Last Digit of Factorial
Intermediate
math
functions
Find Last Position in Sorted Array
Intermediate
Lateral Surface Area of a Cone
Intermediate
math
functions
Lateral Surface Area of a Cylinder
Intermediate
functions
math
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 using the given function
Intermediate
lists
functional-programming
Filter a list to include only the positive numbers
Intermediate
comprehension
lists
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
Magic Square Check
Intermediate
matrices
Match 'a' Followed by 'b'
Intermediate
regex
Match 'a' Followed by 'b's
Intermediate
regex
strings
Match String with 'a' to 'b'
Intermediate
regex
strings
Match String with 'a' and Three 'b's
Intermediate
regex
strings
Match Word Containing 'z'
Intermediate
regex
strings
Transpose a matrix
Intermediate
zip
matrices
Max Absolute Product Tuples
Intermediate
functions
lists
math
Max Aggregate from Tuples
Intermediate
functions
Max Contiguous Sublist Sum
Intermediate
Max Difference in Binary Substring
Intermediate
strings
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
Find Maximum Run of Uppercase Characters
Intermediate
strings
loops
conditionals
Maximize Tuple Elements
Intermediate
functions
loops
zip
Maximum Difference in Array
Intermediate
lists
functions
loops
Merge Three Dictionaries
Intermediate
dictionaries
Merge Three Sorted Lists
Intermediate
lists
Minimum Binary Swaps
Intermediate
strings
Find Minimum Difference in Array
Intermediate
lists
Minimum Jumps to Reach Point
Intermediate
math
functions
conditionals
Minimum Product from Tuple Pairs
Intermediate
functions
lists
math
Minimum String Rotations
Intermediate
strings
loops
Move Numbers to End
Intermediate
strings
loops
conditionals
Move Zeroes to End
Intermediate
lists
Multiply and Divide List
Intermediate
lists
math
functions
Multiply each element in a list by its index
Intermediate
loops
enumerate
Find N Largest Items
Intermediate
lists
Newman-Conway Sequence
Intermediate
recursion
math
Next Perfect Square
Intermediate
math
functions
Next Smallest Palindrome
Intermediate
math
strings
Nth Catalan Number
Intermediate
recursion
math
Nth Centered Hexagonal Number
Intermediate
math
functions
Nth Decagonal Number
Intermediate
math
functions
Nth Hexagonal Number
Intermediate
math
functions
Find the N'th Lucas Number
Intermediate
recursion
math
Nth Newman–Shanks–Williams Prime
Intermediate
recursion
math
Nth Octagonal Number
Intermediate
math
functions
Compute n-th Power of List Elements
Intermediate
functions
lists
Find the N'th Star Number
Intermediate
math
functions
Nth Tetrahedral Number
Intermediate
math
functions
Pack Consecutive Duplicates
Intermediate
lists
loops
Pairwise Addition of Tuple Elements
Intermediate
Pancake Sort List
Intermediate
lists
Partial Function Application
Intermediate
functions
Partition a sequence into sublists
Intermediate
lists
Validate a password
Intermediate
regex
strings
Extract phone numbers from a string
Intermediate
regex
strings
Convert Polar to Rectangular Coordinates
Intermediate
math
functions
Positive Ratio in Array
Intermediate
lists
math
functions
loops
Calculate the product of all elements in the given list
Intermediate
loops
functools
Product of First Even and Odd
Intermediate
lists
loops
conditionals
Rearrange Array: Negatives First
Intermediate
lists
Recursive Integer Multiplication
Intermediate
recursion
functions
Regex Pattern Search
Intermediate
regex
Calculate Regular Polygon Area
Intermediate
math
functions
Remove Characters from String
Intermediate
strings
functions
Remove Consecutive Duplicates
Intermediate
lists
loops
Remove Duplicates from Lists
Intermediate
lists
functions
Remove Elements from List
Intermediate
lists
Remove First and Last Occurrence of Character
Intermediate
strings
functions
loops
Remove k'th Element
Intermediate
lists
Remove Leading Zeroes from IP
Intermediate
strings
regex
functions
Remove Lowercase Substrings
Intermediate
strings
regex
strings
Remove Nested Tuples
Intermediate
loops
Remove Parentheses from String
Intermediate
strings
regex
strings
Remove Words by Length
Intermediate
strings
Replace Spaces, Commas, and Dots
Intermediate
strings
regex
functions
Replace Whitespace and Underscores
Intermediate
strings
Reverse Array Up to Position
Intermediate
lists
functions
Reverse Strings in List
Intermediate
strings
lists
Reverse Vowels in String
Intermediate
strings
functions
loops
conditionals
Reverse Words in String
Intermediate
strings
functions
RGB to HSV Conversion
Intermediate
math
functions
Right Insertion Point
Intermediate
lists
Rotate Left Bits
Intermediate
functions
Rotate List Right
Intermediate
lists
functions
Find Second Smallest Number
Intermediate
lists
functions
Sector Area Calculation
Intermediate
math
functions
Shell Sort Implementation
Intermediate
loops
Find Smallest List Length
Intermediate
lists
functions
loops
Find Smallest Missing Number
Intermediate
recursion
lists
Smallest Power of 2
Intermediate
loops
math
Find Index of Smallest Triangular Number
Intermediate
math
functions
Snake to Camel Case
Intermediate
strings
functions
Sort Dictionary by Value
Intermediate
dictionaries
Sort List Elements
Intermediate
functions
lists
Sort Matrix by Row Sum
Intermediate
matrices
functions
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
Square Pyramid Surface Area
Intermediate
functions
math
Calculate the square root of each element in the given list
Intermediate
loops
math
Subtract all the arguments from the first argument to the function
Intermediate
functions
Difference Between Sum of Cubes and Sum
Intermediate
math
functions
loops
Sum of Per-Digit Difference
Intermediate
math
functions
loops
Sum Digits of Integer
Intermediate
recursion
math
functions
Sum of Even Factors
Intermediate
math
functions
loops
Sum of Even Index Binomial Coefficients
Intermediate
math
Sum Even Numbers at Even Positions
Intermediate
lists
loops
conditionals
Sum of Fourth Power of Odd Numbers
Intermediate
math
loops
functions
Sum Length of Uppercase Names
Intermediate
lists
strings
Sum Non-Repeated Elements
Intermediate
lists
loops
conditionals
Sum Odd Numbers in Range
Intermediate
math
functions
loops
Sum of Common Divisors
Intermediate
math
functions
loops
Sum of Digits in List
Intermediate
lists
Sum of Digits of Power
Intermediate
math
Sum of Divisors
Intermediate
math
functions
loops
Sum of Divisors Equivalence
Intermediate
math
functions
conditionals
Sum of List Range
Intermediate
lists
loops
functions
Sum of Powers of Two
Intermediate
math
Sum of Squares of Even Numbers
Intermediate
math
functions
loops
Sum of Squares of Odd Numbers
Intermediate
math
functions
loops
Sum of XOR Pairs
Intermediate
loops
functions
Sum Series Calculation
Intermediate
recursion
Calculate the sum of squares of all elements in the given list
Intermediate
loops
functools
Tetrahedron Area Calculation
Intermediate
math
functions
Trim Tuples by K
Intermediate
lists
functions
Extract Column from Tuple
Intermediate
Tuple Element Subtraction
Intermediate
functions
Tuple Elementwise Modulo
Intermediate
Tuple Frequency Counter
Intermediate
functions
Tuple Index-wise Multiplication
Intermediate
Tuple Multiplication
Intermediate
loops
functions
Tuple Sum Combinations
Intermediate
Convert Tuple to Adjacent Pair Dictionary
Intermediate
dictionaries
loops
Tuple to Integer Conversion
Intermediate
strings
Union of Tuples in Sorted Order
Intermediate
sets
functions
Find Unique Element in Sorted Array
Intermediate
lists
Find Unique Elements in a List
Intermediate
sets
lists
Unique Product Calculation
Intermediate
lists
functions
sets
loops
Find Unique Characters in a String
Intermediate
sets
strings
Count Unique Tuples
Intermediate
lists
sets
functions
Validate Decimal Precision
Intermediate
regex
Match Lowercase Words Joined by an Underscore
Intermediate
regex
Count Word Frequencies in a File
Intermediate
files
strings
Zero to Non-Zero Ratio
Intermediate
lists
loops
conditionals
math
Zip an arbitrary number of lists together
Intermediate
zip
functions
Create a Dictionary from Two Lists
Intermediate
zip
dictionaries
Apply a function to corresponding elements of multiple lists
Intermediate
lists
functional-programming
Browse 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