What will be the output of the following Python code? count={} count[(1,2,4)] = 5 count[(4,2,1)] = 7 count[(1,2)] = 6 count[(4,2,1)] = 2 tot = 0 for i in count: tot=tot+count[i] print(len(count)+tot)
1.25
2.17
3.16
4. Tuples can’t be made keys of a dictionary
Posted Date:-2021-12-31 10:03:07