From 0cc01a27ed9f790a899dd125df72b1767b12d200 Mon Sep 17 00:00:00 2001 From: David Avery Date: Mon, 3 Feb 2020 14:53:39 +0000 Subject: [PATCH] Coding exercise 40 --- basics.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/basics.py b/basics.py index b4579aa..f93a528 100644 --- a/basics.py +++ b/basics.py @@ -1,7 +1,3 @@ -def addition(numbers): - total = 0 - for number in numbers: - total = total + float(number) - return total - -print(addition(['1.2', '2.6', '3.3'])) \ No newline at end of file +def concat(a, b): + return a + b +print(concat("Hello", " World!")) \ No newline at end of file