What is the difference between a dynamic array and a static array in Python?