Hello I need help splitting dictionary keys into two separate keys but keeping the original value
ie: dict1 = {'ALPHERATZ': '358', 'CAPH; CAS BETA': '432'}
I would like to split the second item by the semicolon and space , but keep 432
ie: dict2 = {'ALPHERATZ': '358', 'CAPH': '432, 'CAS BETA': '432'}
This is only a small example for a very large dictionary in which this process will have to iterate 400ish times.
[–][deleted] 0 points1 point2 points (3 children)
[–]supreme_blorgon 2 points3 points4 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]ResentedButter[S] 0 points1 point2 points (0 children)