The conversation between human and AI assistant.
[|Human|] Rewrite the following code snippet in Python.
[|AI|] Here is a version of the provided function, rewritten in Python using the built-in `sum()` function:

```python
def sumArray(arr):
    return sum(arr)
```
[|Human|] 
Rewrite the following code snippet in Python.