Sum of Numbers #
Write a function that takes a list of numbers as the first argument and returns the sum of all the numbers in the list.
sum() to complete this challenge and try solving it yourself.
Tests #
get_total([0, 0, 0, 0, 0])should return0get_total([1, -2, 3, -4, 5])should return3get_total([2.5, 1.5, -3.5, 4.5])should return5get_total([-10, -20, -30, -40, -50])should return-150get_total([7])should return7
Getting Started with Python
Data Types
Python Functions
Statements in Python
Basic Debugging in Python
Basic Algorithm
Object-Oriented Programming
Error Handling
Intermediate Algorithm
Python Modules