Post
Python
How do I insert/update a key within the dict if it is not there, by using python code?
Posted on 4th February 2023
You can do it like this
if key not in d:
d[key] = value
STILL GOT QUERIES?
Copyright © 2013 - 2023 MindMajix Technologies