jeudi 10 février 2022

popitem () method in Python 3.10 does not work as it worked in Python 3.7

In Python 3.7 popitem () method return and remove random pair key-values. But in Python 3.10 popitem () return and remove LIFO pair key-values. What can i use instead popitem () in Python 3.10 for return and remove random pair in dictionary? Thanks!




Aucun commentaire:

Enregistrer un commentaire