Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Solve Challenging Python Exercises
Rating: 4.6 out of 5(18 ratings)
1,864 students

Solve Challenging Python Exercises

Test your Python skills by solving these challenging exercises
Created byTed Petrou
Last updated 7/2022
English
English [Auto],

What you'll learn

  • Learn how to solve a variety of different Python programming challenges
  • Learn how to use function arguments
  • Learn how to submit solutions to programming challenges
  • Learn how to import and use Python modules

Course content

1 section30 lectures1h 13m total length
  • Python Challenges Introduction2:03

    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.

  • Getting Started with the Challenges7:10

    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.

  • Dunder Data Python Challenge #12:39

    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.

  • Dunder Data Python Challenge #25:24

    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.

  • Dunder Data Python Challenge #2 Clever Solution3:34

    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.

  • Dunder Data Python Challenge #32:28

    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.

  • Dunder Data Python Challenge #43:11

    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.

  • Dunder Data Python Challenge #55:22

    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.

  • Dunder Data Python Challenge #63:22

    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.

  • Dunder Data Python Challenge #71:54

    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.

  • Dunder Data Python Challenge #82:14

    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.

  • Dunder Data Python Challenge #90:56

    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.

  • Dunder Data Python Challenge #102:04

    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.

  • Dunder Data Python Challenge #111:28

    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.

  • Dunder Data Python Challenge #121:58

    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.

  • Dunder Data Python Challenge #131:49

    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.

  • Dunder Data Python Challenge #141:49

    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.

  • Dunder Data Python Challenge #150:59

    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.

  • Dunder Data Python Challenge #162:43

    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).

  • Dunder Data Python Challenge #172:50

    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.

  • Dunder Data Python Challenge #181:46

    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.

  • Dunder Data Python Challenge #190:25

    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.

  • Dunder Data Python Challenge #201:32

    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.

  • Dunder Data Python Challenge #210:56

    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.

  • Dunder Data Python Challenge #220:28

    Learn to return the last character of a string using negative indices in Python, as shown in Dunder Data Python Challenge #22.

  • Dunder Data Python Challenge #230:50

    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.

  • Dunder Data Python Challenge #242:09

    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.

  • Dunder Data Python Challenge #252:15

    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.

  • Dunder Data Python Challenge #262:02

    Sort digits of a given integer from greatest to least. Convert to string, sort with reverse true, join, and cast back to int.

  • Dunder Data Python Challenge #274:40

    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.

Requirements

  • You need to have a basic grasp of the fundamentals of the Python programming language.

Description

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?

Who this course is for:

  • This course is intended for python developers of all skill levels. There challenges range in difficulty from easy to hard.