Given is_subscriber, is_banned, and is_admin, a user can access a premium feature if they are a subs
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
Problem
Given is_subscriber, is_banned, and is_admin, a user can access a premium feature if they are a subscriber AND not banned, OR if they are an admin. Use parentheses to calculate can_access and print it.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.