Lesson 3 : Dictionaries & while Loops

In this lesson, you'll learn how to use Python's dictionaries, which allow you to connect pieces of related information. You'll learn how to access the information once it's in a dictionary and how to modify that information. Because dictionaries can store an almost limitless amount of information, we will see how to loop through the data in a dictionary. Additionally, you'll learn to nest dictionaries inside lists, lists inside dictionaries, and even dictionaries inside other dictionaries.

Most programs are written to solve an end user's problem. To do so, you usually need to get some information from the user. In this lesson, you will also learn how to accept user input so your program can then work with it. You'll also learn how to keep programs running as long as users want them to, so they can enter as much information as they need to; then, your program can work with that information. You'll use Python's while loop to keep programs running as long as certain conditions remain true.