How to use sum() Function in Python?