You can use tools like pylint to check whether your code is PEP8 compatible or not :
so I tried something like :
M_D1 = {" foo bar ":1, " a bc":2, " ":3}
and pylint gave me 10/10 rating, so I guess it has no issues with the spaces used in keys.
You can use tools like pylint to check whether your code is PEP8 compatible or not :
so I tried something like :
M_D1 = {" foo bar ":1, " a bc":2, " ":3}
and pylint gave me 10/10 rating, so I guess it has no issues with the spaces used in keys.