def birthday(people=23): from random import randint as rand; return sum([len(set([rand(1,365) for x in range(people)])) != people for i in range(1000)])
(constructs fewer inner lists, otherwise changes are completely cosmetic)
(constructs fewer inner lists, otherwise changes are completely cosmetic)