mirror of
https://github.com/DavidGailleton/42-Piscine_Python.git
synced 2026-03-13 20:56:54 +01:00
15 lines
382 B
Python
15 lines
382 B
Python
def artifact_sorter(artifacts: list[dict]) -> list[dict]:
|
|
return sorted(artifacts, key=lambda artifact: artifact["power"])
|
|
|
|
|
|
def power_filter(mages: list[dict], min_power: int) -> list[dict]:
|
|
return list(filter(lambda x: x["power"] >= min_power, mages))
|
|
|
|
|
|
def spell_transformer(spells: list[str]) -> list[str]:
|
|
pass
|
|
|
|
|
|
def mage_stats(mages: list[dict]) -> dict:
|
|
pass
|