Open main menu
python-fiddle.com
Examples
Tools
Learning
AI Data Analyst
Sign In
Examples
Tools
Learning
AI Data Analyst
Chrome Extension
Sign In
0 out of 68 challenges solved
Python Coding Challenges
Write code online and get instant feedback on your progress with automated tests
Newbie
Beginner
Intermediate
Advanced
errors
loops
lists
conditionals
dictionaries
strings
functions
comprehension
regex
math
sets
functional-programming
enumerate
functools
files
zip
CSV
recursion
matrices
☐
Fix the error in Python code #1
Newbie
errors
☐
Fix the error in Python code #2
Newbie
errors
☐
Fix the error in Python code #3
Newbie
errors
☐
Fix the error in Python code #4
Newbie
errors
☐
Fix the error in Python code #5
Newbie
errors
☐
Fix the error in Python code #6
Newbie
errors
☐
Fix the error in Python code #7
Newbie
errors
☐
Fix the error in Python code #8
Newbie
errors
☐
Fix the error in Python code #9
Newbie
errors
☐
Count the number of odd numbers in a given list
Beginner
loops
☐
Count the number of vowels in a given string
Beginner
loops
☐
Find numbers that are divisible by 3 but not a multiple of 7
Beginner
loops
☐
Drop the first n elements from a sequence
Beginner
lists
☐
Check voting eligibility based on the given age
Beginner
conditionals
☐
Exclude the first and last items in a list
Beginner
lists
☐
Fix the error in Python code #10
Beginner
errors
☐
Fix the error in Python code #11
Beginner
errors
☐
Fix the error in Python code #12
Beginner
errors
☐
Generate a dictionary of squared numbers
Beginner
dictionaries
☐
Double each number in a list
Beginner
loops
lists
☐
Order a list of strings in alphabetical order
Beginner
loops
lists
☐
Classify the given number
Beginner
conditionals
☐
Split a string into a list
Beginner
strings
☐
Reverse characters in a string
Beginner
loops
strings
☐
Take the first n elements from a sequence
Beginner
lists
☐
Add an arbitrary number of arguments together and return the sum
Intermediate
functions
☐
Count the frequency of each element in the given list
Intermediate
loops
lists
☐
Filter a dictionary to include only the key-value pairs where the value is an even number
Intermediate
comprehension
dictionaries
☐
Create a dictionary where the values are the squares of the original values
Intermediate
comprehension
dictionaries
☐
Validate an email addresses
Intermediate
regex
strings
☐
Calculate the exponential power of the given number
Intermediate
loops
math
☐
Calculate the factorial of the given number
Intermediate
loops
math
☐
Fix the error in Python code #13
Intermediate
errors
☐
Group elements by applying a function to each element
Intermediate
lists
☐
Interleave an arbitrary number of lists
Intermediate
lists
☐
Combine two lists by summing corresponding elements
Intermediate
comprehension
lists
☐
Find common elements between two lists
Intermediate
sets
lists
☐
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
☐
Multiply each element in a list by its index
Intermediate
loops
enumerate
☐
Partition a sequence into sublists
Intermediate
lists
☐
Extract phone numbers from a string
Intermediate
regex
strings
☐
Calculate the product of all elements in the given list
Intermediate
loops
functools
☐
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
☐
Calculate the sum of squares of all elements in the given list
Intermediate
loops
functools
☐
Find unique elements in a given list
Intermediate
sets
lists
☐
Find unique elements in a given list
Intermediate
sets
strings
☐
Count the frequency of words in a file
Intermediate
files
strings
☐
Create a dictionary from two lists
Intermediate
zip
dictionaries
☐
Zip an arbitrary number of lists together
Intermediate
functions
☐
Apply a function to corresponding elements of multiple lists
Intermediate
lists
functional-programming
☐
Check for balanced parentheses, brackets, and braces
Advanced
strings
☐
Function composition by taking two functions as input and returning a composed function
Advanced
functions
☐
Read a CSV file and extracts data from specific columns
Advanced
files
CSV
☐
Extract email addresses
Advanced
regex
strings
☐
Find common elements across multiple lists
Advanced
sets
lists
☐
Flatten a tree
Advanced
recursion
☐
Transpose a matrix
Advanced
zip
matrices
☐
Partial function application
Advanced
functions
☐
Validate a password
Advanced
regex
strings
☐
Calculate the sum of all the numbers in a tree structure
Advanced
recursion
☐
Calculate the depth of a tree
Advanced
recursion
☐
Find the largest value in a tree
Advanced
recursion