coding-for-reproducible-research / CfRR_Courses

Home Repository for the CfRR website
https://coding-for-reproducible-research.github.io/CfRR_Courses/
4 stars 3 forks source link

Visual Guide to Dictionary Manipulation #52

Open berrli opened 3 months ago

berrli commented 3 months ago

Content to be adapted

Motivation

Dictionaries are a key data structure in Python, essential for storing and manipulating data. However, beginners often find it challenging to understand dictionary operations, such as adding, updating, and accessing key-value pairs. A visual tool would be helpful for delivering content on these topics better.

Output

A visual guide integrated into the "Introduction to Python: Dictionaries" page. The visual guide's form can be up to interpretation, but a more abstract type would likely be helpful and can be expanded upon or extended to make more complex examples.

Considerations / Notes

Include visual aids that show the structure of dictionaries and the effects of different methods (e.g., .get(), .keys(), .values(), .items(), .update()).

As a stretch goal, consider writing some Python code that makes this interactive. Still, the form this would take would be limited to what could be used within the Jupyter notebook environment, and so is something that needs to be considered from the start.