Question: can python dictionary keys have spaces?
Answer: In this case, spaces could be considered bad form because the first version will not work: Python doesn't have that option in the first place, so the question doesn't arise. Your keys can be any (string) you want. If you are using them for something internal - a space might not be the best idea. Otherwise - ok.