MISSION 49

Lambda Functions

So far in this Python Programming Advanced course, we've gone over Object-Oriented Programming and Exception Handling. 

In this module, we'll learn about advanced string manipulation, which is essential to working with data represented as text. We will also learn about lambda functions or anonymous functions, which are useful if you want to run a function once and don't need to save it for reuse. 

To facilitate your learning of lambda functions and other string manipulation techniques, you'll work with a user password list. You'll use the password list to find interesting trends in how people select their password.

Because you'll be working with real-world data, you will have the opportunity to think like a data analyst or data scientist as you explore a dataset. By the end of this module, you will have a better working knowledge of regular expressions and how to use them to do some powerful string manipulation with lambda functions.

As you work through this lambda functions module, you’ll get to apply what you’ve learned from within your browser — there's no need to use your own machine to do the exercises. The Python environment inside of this course includes answer checking so you can ensure that you've fully mastered each concept before learning the next. 

If you want additional practice using lambda functions, you can check out the lambda functions module as a part of the Data Cleaning in Python: Advanced course

Objectives

  • Learn how to manipulate strings.
  • Learn how to use lambda functions.

Mission Outline

1. Introduction to String Manipulation
2. Omitting Starting or Ending Indices
3. Skipping Indices in a Slice with Steps
4. Negative Indexing
5. Overview of the Password Data
6. Searching for Substrings
7. First-Class Functions
8. Average Password Length
9. More Uses for First-Class Functions
10. Lambda Functions
11. Password Strengths
12. Takeaways

python-programming-advanced

Course Info:

Intermediate

The median completion time for this course is 6.9 hours. View Details

This course requires a premium subscription. This course includes five missions.  It is the 27th course in the Data Scientist in Python path.

START LEARNING FREE

Take a Look Inside