SyntaxFix
Write A Post
Hire A Developer
Questions
d = dict([(x,0) for x in a])
**edit Tim's solution is better because it uses generators see the comment to his answer.