0

Delete string in python

I have converted one XML to JSON. I want to delete some element from JSON file in python. It gives me error that string cant be depleted. Any solution would be appreciated .

1st Aug 2019, 3:04 AM
Shankar Negi
Shankar Negi - avatar
1 Resposta
+ 1
#something like this? x={1:'a',2:'b',3:'c'} del x[1] print(x)
1st Aug 2019, 3:57 AM
Steven M
Steven M - avatar