Commit 2e6ec118 by BellCodeEditor

save project

parent 62c6b99b
Showing with 8 additions and 0 deletions
...@@ -11,5 +11,12 @@ def abcd(): ...@@ -11,5 +11,12 @@ def abcd():
if unit== 'q': if unit== 'q':
break break
return total return total
def sum(s):
b=0
for i in s:
b+=i
return b
a=abcd() a=abcd()
print(a) print(a)
s=sum(a)
print(s)
\ 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