Percentile Calculation
Given a list of numbers and a target value, return the percentile rank of that value in the list.
Euclidean Distance Matrix
Write a function to compute the Euclidean distance between every pair of points from two lists.
Cosine Similarity of Vectors
Compute the cosine similarity between two equal-length numeric vectors using pure Python.
Logging Filter
Given a list of log entries, return those matching a given severity level and containing a keyword.
Order by Name
Implement a function that sorts a list of names alphabetically ignoring case, returning a new list.
Invariant checker
Implement check_invariant(a, b, c) that returns True when a equals b plus c and False otherwise, matching the given examples.
Argmax along axis
Write a function that returns index positions of the maximum values along rows or columns of a 2D list.
Min-Max Scaler: Fit and Transform
Implement a MinMaxScaler class that normalizes numeric data to a given range using fit and transform methods.
Validate Password Strength
Implement a function that validates password strength based on clear rules.
Jump Game Minimum Jumps
Given an array of non-negative integers where each element is the maximum jump length, compute the minimum jumps to reach the last index.
Showing 97–106 of 106 challenges · Python Basics
Python Basics — Python coding challenges
What you will find here
This page lists python basics challenges — real Python problems you solve in the browser IDE with instant test feedback. Each challenge includes a clear brief, starter code, and automated checks.
Challenges vs tutorials and quizzes
Challenges test what you can build under constraints. For guided teaching, use our Python tutorials. For quick checks, try quizzes or copy snippets from code samples.