fork download
  1. import random
  2. import datetime
  3.  
  4. l = []
  5. m = 23
  6. for r in range(1,m):
  7. n = random.randrange(1,365)
  8. d = datetime.date(datetime.datetime.now().year,1,1) + datetime.timedelta(n)
  9. l.append(d)
  10.  
  11. for e in l:
  12. o = l.count(e)
  13. if o > 1:
  14. print str(e) + "\t" + str(l.count(e))
  15. else:
  16. print str(e)
Success #stdin #stdout 0.02s 11496KB
stdin
Standard input is empty
stdout
2015-03-27	2
2015-11-21
2015-02-05
2015-12-17
2015-08-12
2015-11-06
2015-02-26
2015-12-07
2015-09-24
2015-07-16
2015-06-06
2015-08-25
2015-03-27	2
2015-07-10
2015-07-22
2015-08-01
2015-12-23
2015-05-26
2015-10-19
2015-11-03
2015-10-18
2015-06-20