Suppose we have a name:
x='STAR'
and a list:
y=['super', 'sunny', 'talented', 'arrogant', 'apple', 'razor', 'rhyme']
How do we get an output like this -
S for Super
T for Talented
A for Apple
R for razor
where all the words are picked up randomly from list y.
You can use a combination of
listanddict:given an example :
y=['super', 'sunny', 'talented', 'arrogant', 'apple', 'razor', 'rhyme']