Test 3: Checking array replacement... Traceback (most recent call last): File "", line 7, in AttributeError: 'NoneType' object has no attribute 'get'