Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

bellcode / lesson13-4

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • lesson13-4
  • diy.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · a91b099f
    BellCodeEditor committed a year ago
    a91b099f
diy.py 244 Bytes
Edit
1 2 3 4 5 6 7 8 9 10
with open(r'C:\Users\DELL\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') as a:
    b=a.readlines()
for i in b:
    z=i.split()
    p=0
    # print(z[1:])
    for o in z[1:]:
        p=p+int(o)
    w=z[0]+str(p)
    print(w)