What will be the output of the following Python code snippet? total={} def insert(items): if items in total: total[items] += 1 else: total[items] = 1 insert('Apple') insert('Ball') insert('Apple') print (len(total))
1. 3
2. 1
3. 2
4. 0
Posted Date:-2021-12-31 09:54:49