Commit a5046a77 by BellCodeEditor

save project

parent 89983100
...@@ -15,9 +15,9 @@ def new_input(): ...@@ -15,9 +15,9 @@ def new_input():
return total return total
def sum_a(list_a): def sum_a(list_a):
sumnum=0 sumnum=0
for i in a: for i in list_a:
sumnum+=i sumnum+=i
return sumnum return sumnum
a=new_input() # a=new_input()
b=sum_a(a) # b=sum_a(a)
print(b) # print(b)
\ No newline at end of file \ No newline at end of file
import func
a=func.new_input()
b=func.sum_a(a)
print(b)
\ No newline at end of file
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