Commit 7c8d2686 by BellCodeEditor

save project

parent c29a5d2a
Showing with 8 additions and 3 deletions
...@@ -12,7 +12,13 @@ def a_input(): ...@@ -12,7 +12,13 @@ def a_input():
else: else:
total.append(unit) total.append(unit)
print('*'*30) print('*'*30)
#print(total)
return total return total
def sum(d):
c=0
for i in d:
c=c+i
return c
t1=a_input() t1=a_input()
print(t1) pay=sum(t1)
\ No newline at end of file print(pay)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment