diff --git a/func.py b/func.py index 0e5be68..09d4fa4 100644 --- a/func.py +++ b/func.py @@ -12,6 +12,12 @@ def new_input(): else: total.append(unit) return total +def sum(): + count=0 + for i in money: + count=count+i + return count + a=new_input() print(a)