from typing import Dict def noteOn20(note: int, total: int): return note * 20/total def stripKeyDict(dict: Dict, key: str): return {k: v for k, v in dict.items() if k != key}