Re: How to begin

2014-02-13 Thread pete suchsland
On Thursday, February 13, 2014 6:18:26 AM UTC-7, weixixiao wrote: > http://www.codecademy.com > > > > I have learned the basic rules of Python in this website. > > > > What should I do next?where to go? > > > > I download the Pycharm the free version and I think I dunno how to use it > e

Re: Sorting dictionary by datetime value

2014-02-10 Thread pete suchsland
How about make it simple by using sorted(a.values()) ... >>> a = {} >>> a['first'] = datetime.datetime.now() >>> a['second'] = datetime.datetime.now() >>> a['third'] = datetime.datetime.now() >>> a['forth'] = datetime.datetime.now() >>> a['fifth'] = datetime.datetime.now() >>> sorted(a.values())