Create a dictionary called `product` with "name" set to "Laptop", "price" set to 999, and "in_stock"
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
Problem
Create a dictionary called `product` with "name" set to "Laptop", "price" set to 999, and "in_stock" set to True. Print the type of the dictionary, then print the number of entries.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.