Commit ed1acedb by BellCodeEditor

save project

parent a51cbbf2
Showing with 7 additions and 7 deletions
file=open(r'c:users/cm/documens/lesson13-1/sales_list.'r'-8)as file with open(r'c:users/cm/documens/lesson13-1/sales_list.'r'-8)as file
a=file.readlints() a=file.readlints()
final_sum=[]
for i in a: for i in a:
data=i.split() data=i.split()
sum=0 sum=0
for salis in data(1:) for salis in data(1:)
sum=sum+int(seles) sum=sum+int(seles
print(result)
with open(r'c:users/cm/documens/lesson13-1/sales_list.'r'-8)as file
print(result) file.writelines(final_sum)
\ No newline at end of file \ 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