I created N to combine test1 and test2 making it 1 line 10 digits
How do I assign a variable that carries this whole function? So I could use print A
and it prints N 10 times. I need to use results in future for something else.
Outside of the code below N prints the whole thing just once. I don't want to use
print N
print N
print N
print N...
Here's the original code
for i in range(10):
test1 = stats.rv_discrete(name='test1', values=(numbers, probability))
test1_results = test1.rvs(size=8)
test2 = stats.rv_discrete(name='test2', values=(numbers2, probability2))
test2_results = test2.rvs(size=2)
N = str(test1_results) + str(test2_results)
print ''.join(str(v) for v in N)