AI for Everyone - How AI Models Actually Work
Identify the error in this code that counts items in training data:
training_data = ['x', 'y', 'x']
counts = {}
for item in training_data:
counts[item] += 1
print(counts)