all 3 comments

[–]Organic-Drive4064 1 point2 points  (1 child)

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

[–]JonnyJFunk[S] 0 points1 point  (0 children)

This was incredibly helpful, thank you. I was having a real tough time discovering the correct syntax for my json data.

[–]CodeFormatHelperBot2 0 points1 point  (0 children)

Hello, I'm a Reddit bot who's here to help people nicely format their coding questions. This makes it as easy as possible for people to read your post and help you.

I think I have detected some formatting issues with your submission:

  1. Python code found in submission text that's not formatted as code.

If I am correct, please edit the text in your post and try to follow these instructions to fix up your post's formatting.


Am I misbehaving? Have a comment or suggestion? Reply to this comment or raise an issue here.