6 lines
229 B
Python
6 lines
229 B
Python
def transform(legacy_data: dict[int, list[str]]) -> dict[str, int]:
|
|
new_data: dict[str, int] = {}
|
|
for key in legacy_data:
|
|
new_data.update(dict.fromkeys("".join(legacy_data[key]).lower(), key))
|
|
return new_data
|