Python Dictionaries and List Comprehensions
Posted on Aug 10th, 2022
🗓️ Today’s topics
- Dictionaries
- Tuples
- Lists and list comprehensions
🐍 Code Break
🎯 Project
Begin the project,Word Frequency . A dictionary will help you solve the problem of counting words. This will be due on Monday, 8/15.
At minimum you should be able to count words and print that count, even if the formatting of your output is not 100% on point.
🔖 Resources
- Python Docs: Dictionaries
- Documentación de Python: Diccionarios
- Python Docs: List comprehensions
- Python Docs: Comprensión de Listas
- Python list comprehensions explained visually
- RealPython: Python lists and tuples
- RealPython: Dictionaries
- RealPython: Sorting in Python
- Python Docs: Sorting HOWTO
🦉 Code & Notes
- NBA Scores Example
- What does
if __name__ == "__main__"
do? - Notes: Lists, Dicts, and Tuples
- Intro to Python notebooks (Notebooks 7 & 9 especially)