Unit 5 · Gotta Catch 'Em All! · Lesson 45 of 57
Collected Them All
Collected them all!
In this unit, you learned how to:
- Keep lots of things in a list, and grab them by index (starting at 0!)
- Add to a list with
.append(), and loop through it withfor - Look things up by name with a dictionary of keys and values
- Avoid a
KeyErrorby checking withinfirst - Clean up strings with methods like
.strip(),.lower()and.split(), and remember that they return a new string - Catch leaked passwords, like a real security team
Quiz time!
Let's see if it stuck.
Knowledge check
A few questions on what the lesson covered. Create a free account to do this part.
Do this lesson for real
With a free account you get the terminals, challenges and checks that go with the lessons in Intro to Python, and your progress is saved as you go. CyberAcad is a 501(c)(3) nonprofit, so there is nothing to pay.