Commit b456538d by BellCodeEditor

save project

parent 10973b9c
Showing with 6 additions and 2 deletions
...@@ -4,5 +4,8 @@ for i in data: ...@@ -4,5 +4,8 @@ for i in data:
data=i.split() data=i.split()
name=data[0] name=data[0]
money=data[1:] money=data[1:]
print(name) sum=0
print(money) for sales in money:
sum=sum+int(sales)
result=name+str(sum)
print(result)
\ 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