I basically want a python equivalent of this in C:
int a[x];
but in python I declare an array like:
a = []
Just declare the list and append each element. For ex:
a = [] a.append('first item') a.append('second item')