โ09-24-2021 09:39 PM
โ09-25-2021 12:01 PM
Hi Kaniz,
You can remove it by using the pop method
dict.pop('key', None)
It is a safe way to delete a key even if you are not sure it exists. The second parameter is optional also.
You can read more about the method here.
Thank you
โ09-25-2021 10:54 PM
Thank you @spark-user.
โ09-26-2021 05:13 AM
No problem!
never-displayed