I want to generate 4 random numbers from 1 to 50. And I want to define a function of this random code generator n times. And save each random 4 number in a successive list names.
def eko():
print(random.sample(range(1, 50), 4))
def eko_times(times):
for i in range(times):eko()
for example, when I type eko_times(2)
I want to see this result:
eko_1:[1,43,23,3]
eko_2:[8,32,34,2]
how can I save this outputs as new list names as eko_i?