Hi,
I am trying to generate a list of random numbers where each number in the list is a individual string. This is my code so far:
import random
def make_secret(numdigits):
a=[]
secret = random.sample(range(0, 10), numdigits)
for i in secret:
a.append(str(secret))
return a
An example of what i'm trying to output is .
However my code is doing something else entirely.
Any help would be appreiciated as I know this is a simple solution
Thanks