Browsed by
Tag: python

Daily Grind 2: Python Sorting

Daily Grind 2: Python Sorting

I have only been recently getting into python – at first for fun on CodinGame, and then more recently for some side work (including the MailChimp integration).  Something that I often find necessary for the various CodinGame puzzles and contests is sorting lists and dictionaries.  I often have to look up the correct ways to sort, especially when my the lists or definitions contain more complicated objects.  I figured this would be a good opportunity to share some of what…

Read More Read More

Daily Grind 1: Python Problems & Solutions

Daily Grind 1: Python Problems & Solutions

To start things off I am tossing out a few python problems I have come across recently, and the solutions I found for them. Python Date Manipulation While creating a python integration for MailChimp I needed to create a SQL query that would grab all records of a certain type that were created since Friday of last week.  If you have spent any time in the land of PHP, the strtotime method may come to mind.  Python even has a port of that…

Read More Read More