What is the use of the "sum" function in Python?