d = dict.fromkeys(keys, value)
is fine if value is immutable e.g., a string, number.Your code doesn't solve the mutability problem (each value is the exact same object. If you modify it for one key; the values are modified for all keys).
For a mutable type you need to create a new value for each key:
d = {k: [] for k in keys}