Answers for "dict pop with index python"

0

dict pop with index python

d = {'s':0, 'e':1, 't':6}
del d[next(iter(d))]
print(d)

# This outputs:
{'e': 1, 't': 6}
Posted by: Guest on March-11-2022

Python Answers by Framework

Browse Popular Code Answers by Language