Q9Multiple correct3 Marks13 Apr 2025
Consider the below snippets, which are intended to create a dictionary with product names as keys and their frequency in the given list as values.
Select all the correct statement(s) from the given statements.
```
# Snippet-1
products = ['laptop', 'tablet', 'phone', 'laptop', 'phone']
freq = {item: products.count(item) for item in products}
print(freq)
# Snippet-2
products = ['laptop', 'tablet', 'phone', 'laptop', 'phone']
freq = {item: count(item) for item in products}
print(freq)
```