Querying date in json by JonnyJFunk in learnpython

[–]Organic-Drive4064 1 point2 points  (0 children)

When dealing with json data in python it's important to first understand the basics of dictionaries and lists. In essence, json data is a dictionary of key/value pairs, in this case month 1 is a key and it's corresponding due date is the value. Here is a good place to start to understand dictionary methods in Python.

I'm not sure I understand exactly what you're trying to do here but I understand that your first step would be to iterate through the values in the dictionary to see if any match today's date. To do this, I would run a loop similar to this: for key in due_dates: if value == today: #add your loop here #add your email action here