As Willem van Onsem correctly mentioned in the comments:
"...that is really bad design, call-by-name is rather unsafe. You better use a dictionary."
So, try this:
n = {'option1':'321','option2':'243','option3':'780'}
letter = random.choice(list(n.values()))
Or, shorter, as Chris has mentioned:
d = {'n':[321, 243, 780]}
letter = random.choice(d['n'])
Results from print(letter) (on both options):
321
321
780
243
etc..
EDIT:
How to add extra variables:
n = 'n'
d = {n:[321, 243, 780]}
letter = random.choice(d[n])
q = 'q'
d[q] = [600, 234, 180]
new_letter = random.choice(d[q])
Now print(new_letter) gives:
234
180
180
600
etc..
SECOND EDIT (which btw is pure bonus since the question turned into a completely different one then first asked.. therefor, it is left unoptimized. Yet, working nonetheless..):
import random
d = {'n':[321, 243, 780], 'b':['12','56','90'], 'a':['178', '765', '111']}
E = input('Enter Word...')
inputword = list(E)
for key in d.keys():
if key in inputword:
for i in range(len(inputword)):
if inputword[i] == key:
try:
inputword[i] = str(random.choice(d[key]))
except:
pass
result = ''.join(inputword)
print(result)
If input = nba then output = 32190111
If input = nhhsygbbvvra then output = 321hhsyg5690vvr178
Etc..
'n'is not a list, it's a string;nis a list.