mardi 4 août 2020

How can i randomize dictionary keys and value individually

I want to randomize the dictionary key and its value whenever they are printed example:

input

dictionary={"1":"one","2":"two","3":"three"}

#expecting output

{"1":"three","3":"one","2":"two"}




Aucun commentaire:

Enregistrer un commentaire