
Asked in Tiger Analytics
Implement a Python Collection Counter from scratch.

AnswerBot
2y
Implementing Python Collection Counter from Scratch
Create an empty dictionary to store the elements and their count
Iterate through the input list and add elements to the dictionary with their count
Ret...read more
Anonymous
1y
list1 = ['x', 'y', 'z', 'x', 'x', 'x', 'y', 'z', 'p', 'p', 'z']
d = {}
for i in list1:
if i in d:
d[i] += 1
else:
d[i] = 1
print(d)
Sovan Paul
2y
list1 = ['x','y','z','x','x','x','y', 'z','p','p','z']
d ={}
c = 0
for i in list1:
if i in d.keys():
d[i] = d[i] + 1
else:
d[i] = 1
print(d)
Add answer anonymously...
Top Senior Analyst Interview Questions Asked at Tiger Analytics
Q. If the sum of three prime numbers is 100 and the difference between two of these...read more
Q. How do you calculate the volume of the perpendicular intersection between two cy...read more
Q. Solve a Python problem using dictionaries.
Interview Questions Asked to Senior Analyst at Other Companies
Top Skill-Based Questions for Tiger Analytics Senior Analyst
SQL Interview Questions and Answers
250 Questions
Networking Interview Questions and Answers
250 Questions
Machine Learning Interview Questions and Answers
250 Questions
Algorithms Interview Questions and Answers
250 Questions
Operating Systems Interview Questions and Answers
250 Questions
Python Interview Questions and Answers
200 Questions
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

