You cannot pass anything by value in Python. If you want to make a copy of a, you can do so explicitly, as described in the official Python FAQ:
a
b = a[:]
2.1m questions
2.1m answers
60 comments
57.0k users