#!/usr/bin/env python f=lambda n:sum([[x,n/x]for x in range(1,n+1)if n%x<1],[]) print f(12)
Standard input is empty
[1, 12, 2, 6, 3, 4, 4, 3, 6, 2, 12, 1]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!