I am trying to write a code that will randomly select between 1 and 4 elements of a list 50 times. The list I am working with is ['nu', 'ne', 'na', 'ku', 'ke', 'ka']
.
So essentially, I want it to output something like
nukuna
ke
keka
nuka
nane
nanenu
nu
nukekanu
kunu
...
50 times
In Python:
In C:
Try with this Python code: