Study Group interview question

how to sum in python?