Given the list valid_codes as a list, convert it to a set called valid_set
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
Problem
Given the list valid_codes as a list, convert it to a set called valid_set. Then check if the code 'X999' is in valid_set and print the result. Also check if 'A100' is in valid_set and print that result.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.