Apr-08-2020, 04:15 PM
(This post was last modified: Apr-08-2020, 04:15 PM by cherry_cherry.)
(Apr-08-2020, 04:07 PM)deanhystad Wrote: It returns an empty dictionary. None is something different.
Now this code is ok but when I use with other function, a new_dict isn't emty. And I did not find a solution to solve the notification problem.
def check(seq): for i in seq: (key, value), *rest = i.items() if value not in seq: new_dict[value] = dict(rest) else: return("Numero en double! " + "\n---->" + value + "\nFichier non utilisable!") return new_dict