diff --git a/2.py b/2.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/2.py
diff --git a/func.py b/func.py
index c3ef575..cc89b0a 100644
--- a/func.py
+++ b/func.py
@@ -10,5 +10,13 @@ def new_input():
             except:
                 print('请输入整数')
     return total
-a=new_input()
-print(a)
\ No newline at end of file
+def sum(money):
+    b=0
+    for i in money:
+        b+=i
+    return b
+c=new_input()
+a=sum(c)
+print('总共需要'+str(a)+'元。')
+print(c)
+    
\ No newline at end of file