Answers for "python delete attribute from dict"

1

remove dict python

del r[key]
Posted by: Guest on February-12-2021
0

python delete attribute from dict

a_json = {"attr1":"value1"}
a_json["attr2"] = 0.75
del a_json["attr2"]

print(a_json)
Posted by: Guest on January-23-2022

Python Answers by Framework

Browse Popular Code Answers by Language