is_allowed(username, blocklist) that returns False if username appears in the list blocklist, and True otherwise, using the in / not in membership operators (not a manual loop).is_allowed("spammer1", ["spammer1", "bot99"])False
"spammer1" is in the blocklist.
is_allowed("real_user", ["spammer1", "bot99"])True
"real_user" is not blocked.
`username not in blocklist` is exactly the membership test needed.