How to remove one of duplicate keys (one in lowercase one in uppercase) but keep their values? : I have a list of dictionaries called `dicts`. I am writing `dicts` into a csv file using DictWriter. `dicts` has duplicate keys like: `Accepted Currencies (DASH)` and `Accepted Currencies (Dash)` which I would like to merge those keys into a single key with uppercase i.e. I want to only keep `Accepted Currencies (DASH)` as a key and also keep both keys' values. For instance, currently, I'd like to have something like the following:
[![enter image description here][1]][1]

Here is my code:

    fieldnames = set()
    fieldnames.update(*(d.keys() for d in dicts))
    fieldnames = sorted(fieldnames)
    with open('/home/zeinab/Documents/ICOannouncements/myfile.csv', 'a', newline='') as f:
        writer= csv.DictWriter(f, fieldnames=fieldnames)
        writer.writeheader()
        for d in dicts:
            writer.writerow(d)


  [1]: https://i.stack.imgur.com/NzjEg.png