I have three lists, named list0, list1 and list2.
Here is what i want to do
for n in range(10):
x = n%3
listx.append(n)
where x can be 0, 1 or 2. How can I do this? Basically, I don't want to create 3 if/elif cases but just change the third line in above program
PS - I know this not the best method for this problem but my project is quite different from this
list[x].append(n).