
Tackle progressively challenging Python exercises with a range of difficulty, graded instantly in a Jupyter notebook, with video solutions to help you understand each answer.
Discover how to access Python challenges via GitHub, fetch and open assignments in a Jupyter notebook, implement code within the exercise function, test with assertions, and submit to view feedback.
Implement a function that returns the difference between the max and min of a list of integers using max and min, with a sample input and automatic grading.
Solve challenging python exercises by returning the list with the largest total from any number of integer lists, using star notation to collect arguments and exploring naive and clever solutions.
Discover a clever one-line solution to the dunder data Python challenge by using max with the key parameter set to sum to select the list with the largest total.
Solve daily Python exercises by using max with a key to compare lists of integers, returning the single list containing the largest value across any number of lists.
Find the maximum values from each list and sort them from greatest to least, using a list comprehension and the sorted function, with an optional map-based one-liner and assert checks.
Solve challenging python exercises by computing the per-position maximum across multiple lists using zip and star unpacking, with solutions via list comprehension or map.
Apply functional techniques to compute the product of the largest values from each list without loops or arithmetic operators, using map to extract maxima and reduce with operator.mul.
Combine multiple lists of integers into a single list and sort from least to greatest using extend and the sorted function, as shown in Dunder Data Python Challenge #7.
Solve challenging Python exercises by totaling even and odd integers in a list separately and returning their absolute difference using a loop and modulus two.
Tackle dunder data python challenge number nine by practicing a one-line solution that checks if the string's last letter is uppercase using the upper function, with an assert for verification.
Explore Python set operations by solving the Dunder Data Python Challenge #10: compute the common characters between two strings using set intersection, returning a set of shared items.
Tackle the Dunder Data Python Challenge #11 by determining how many ending zeros an integer n has, using string conversion and right-strip of zeros to compare lengths.
Learn to compute trailing zeros of a factorial in Python using for loops or the math.factorial function, then count zeros by string length differences and verify with examples.
Solve challenging Python exercises by implementing a function that counts how many times a number can be evenly divided by two using a while loop, with practical test cases.
Solve Python exercises by counting how many times a number can be evenly divided by two using a loop that tests n mod two, increments a count, and halves n.
Practice daily dunder data Python challenge #15 to sharpen your skills. Compute the clock minute hand degrees by multiplying the minute value by six, given 360 degrees and 60 minutes.
solve challenging python exercises with the dunder data python challenge #16 by converting hour:minute:second to minute and second, then computing the minute hand degree as six times (minute plus second/60).
Solve challenging Python exercises by implementing a greedy change-making algorithm for 1–99 cents, returning the counts of quarters, dimes, nickels and pennies as a list using divmod.
Solve the dunder data python challenge by extracting words from a space separated string that start with a given character and end with another, preserving order.
Solve dunder data python challenge number 19 by computing the area of a triangle from a given base and height using base times height divided by two.
convert a clock minute value to degrees by multiplying by six, validate minutes are 0–59, raise a value error for invalid input, and test with 99.
Solve challenging python exercises with Dunder Data Python Challenge 21: double odd numbers and triple even numbers using a one-line ternary, plus a modular two check and correctness verification.
Learn to return the last character of a string using negative indices in Python, as shown in Dunder Data Python Challenge #22.
Explore dunder data Python challenge #23 by converting a string into a list of its characters using the list constructor, which iterates over any iterable and yields individual items.
Solve the digits of an integer by converting it to a string and summing each digit, using a generator expression or map for a one-step solution.
Split the given string into substrings every three characters and return them as a list, using a list comprehension with range(0, len(s), 3) and slicing for each group.
Sort digits of a given integer from greatest to least. Convert to string, sort with reverse true, join, and cast back to int.
Create a roman numeral converter by mapping numeral values in a dictionary, iterating from largest to smallest, using divmod to count repetitions, and building the least-numeral result up to 5000.
In this course you are presented with dozens of challenges requiring the Python programming language to solve. Each challenge is provided within a Jupyter Notebook and upon submission will get graded immediately. The challenges vary in difficulty and cover many different aspects parts of Python. Video solutions for each challenge are provided so that you can see exactly how Ted thinks about the problem.
Ted Petrou is a world-renowned Python expert having written the books Pandas Cookbook and Master Data Analysis with Python. Ted has also answered more than 400 pandas questions on Stack Overflow and taught thousands of students both in-person and online. With this experience, he has developed hundreds of exercises that aim to teach the most efficient and effective ways at using the Python programming language.
Python is one of the most powerful and popular programming languages today. Although it is widely used, it takes a long time to master. There are often multiple ways of solving the same problem and unfortunately many of these solutions are poor and ineffective. Ted has developed these challenges to teach you the very best practices for completing tasks with Python.
Do you have what it takes to solve these challenges?