open_in_new
content_copy
l = [dict(zip([1],[x])) for x in range(1,3)] print(l) # Output #[{1: 1}, {1: 2}]