Given an IAM policy document (as a dictionary), return the sorted list of distinct actions in statements
whose Effect is "Allow". Statement may be a single object or a list; Action may be a string or a
list. Ignore statements with NotAction. Action names compare case-insensitively: return them
lowercased.
Implement allowed_actions. Input: policy: dict. Returns: list[str].
def allowed_actions(policy: dict) -> list[str]:
return []
Run executes the public tests. Submit grades against public and hidden tests.
Given an IAM policy document (as a dictionary), return the sorted list of distinct actions in statements
whose Effect is "Allow". Statement may be a single object or a list; Action may be a string or a
list. Ignore statements with NotAction. Action names compare case-insensitively: return them
lowercased.
Implement allowed_actions. Input: policy: dict. Returns: list[str].
def allowed_actions(policy: dict) -> list[str]:
return []
Run executes the public tests. Submit grades against public and hidden tests.