I'm a beginner to python, but I can't find anything on the internet to help me with this problem:
I want to append different values to 2 different lists at once (the actual problem is more complex than this but I just need to know the right syntax so I'm simplifying it)
test1= []
test2= []
[test1.append(1) and test2.append(2) for i in range (10)]
this doesn't append to both lists, how do I make that happen?