primeiro commit com exercicios de Exercism realizados até esta data
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
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
|
||||
Reference in New Issue
Block a user