Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson13-3
This project
Loading...
Sign in
Toggle navigation
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
Commit
7827c506
authored
Jun 03, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
8279b6ef
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
did2.py
sales_list.txt
did2.py
View file @
7827c506
with
open
(
"sales_list.txt"
,
"r"
,
encoding
=
"utf_8"
)
as
file
:
f
=
file
.
readlines
()
for
i
in
f
:
num
=
i
.
split
(
" "
)[
1
:]
print
(
num
)
data
=
i
.
split
(
" "
)[
1
:]
sum
=
0
for
num
in
data
[
1
:]:
if
num
not
file
.
close
()
\ No newline at end of file
sales_list.txt
View file @
7827c506
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment