vendredi 20 décembre 2019

not able to convert multidimentional list to a sentence using python

import random
p = ['hello','hey','hi'],['brother','bro','sir'],['me','myself'],['a'],['hero']
print(random.choices(random.choices(p)))

Desired output : hello bro myself a hero




Aucun commentaire:

Enregistrer un commentaire