lundi 22 février 2021

Python get random value from comma seperated list

I have the following example string:

"jkbgr-ouuerg-uzge8-rgub, uirib-eioh-34fn-zdfe"

Now I want to choose a random key from this comma seperated list and further process it in a for loop, how can I split the list and choose a random value from it?

Kind regards




Aucun commentaire:

Enregistrer un commentaire