Apr-08-2020, 02:13 PM
(Apr-08-2020, 01:27 PM)deanhystad Wrote: That is not true. In your first example you created an empty dictionary and you returned a value. You know how to do both of those things, now just put them together. You are overthinking this problem. Think the most obvious answer to the question: How do I return an empty dictionary?
But when I tested my firt code, it's always return a new dict, and if it has a numero duplicated, it will delete the second duplicate value and return a new dict. And I don't know why because my condition return a new dict when 'else'.