I’ve been looking forward to hitting one month on my #RWrunstreak, then I realized I hit that goal two days ago! When I started on Dec. 11, it was just a way to stay active during holiday vacation. I was concerned about my knees, but my joints actually feel BETTER! Amazing.
— Justin (@__repr__sloan) January 14, 2018
I’ll be honest, it took nearly three hours and about four iterations before I finally figured out how to get this working. What I needed to do was grab
N words with the highest value from a list loaded by
I looked at using a dictionary first, but since dictionaries in Python are unordered, there was no reasonably simple way to sort the dictionary without a
I also looked at
namedtuples, a very cool Python feature, but I would have to load the classes into a list to iterate over them. It quickly became too complicated to keep track of everything.
First run of the year complete with a consistent one mile time of 8:08. Since I'm looking to move to Hawaii next this may be a sign of things to come.
— Justin (@BarbellJourney) January 1, 2018