I want to take integer as input and declare that many arrays with array_names as starting form 0 to that integer for example :
if I give input as 3 , then in my code there should be
arr1 = [] ,
arr2 = [] ,
arr3 = []
I tried this but its giving syntax error
arr = []
no_of_arrays = int(input())
for i in range(no_of_arrays):
arr{i} = []
its giving
SyntaxError: invalid syntax