CourseWare Wiki
Switch Term
Winter 2023 / 2024
Winter 2022 / 2023
Winter 2021 / 2022
Winter 2020 / 2021
Winter 2019 / 2020
Winter 2018 / 2019
Older
Search
Log In
old
courses
be5b33prg
homeworks
files
Warning
This page is located in archive. Go to the latest version of this
course pages
.
Differences
This shows you the differences between two versions of the page.
View differences:
Side by Side
Inline
Go
Link to this comparison view
Both sides previous revision
Previous revision
2016/11/04 16:05 xposik [Homework: Files]
2015/12/01 16:14 xposik [Working with Counters]
2015/12/01 16:07 xposik [Report author counts]
2015/12/01 16:06 xposik [Index by author]
2015/12/01 15:51 xposik [Load library]
2015/12/01 15:45 xposik [Homework: Files]
2015/12/01 15:31 xposik [Homework: Files]
2015/12/01 14:58 xposik
2015/11/30 14:44 xposik
2015/11/27 14:42 xposik
2015/11/27 14:42 xposik created
Go
Next revision
Previous revision
2016/11/04 16:05 xposik [Homework: Files]
2015/12/01 16:14 xposik [Working with Counters]
2015/12/01 16:07 xposik [Report author counts]
2015/12/01 16:06 xposik [Index by author]
2015/12/01 15:51 xposik [Load library]
2015/12/01 15:45 xposik [Homework: Files]
2015/12/01 15:31 xposik [Homework: Files]
2015/12/01 14:58 xposik
2015/11/30 14:44 xposik
2015/11/27 14:42 xposik
2015/11/27 14:42 xposik created
Go
courses:be5b33prg:homeworks:files [2015/12/01 16:06]
xposik
[Index by author]
courses:be5b33prg:homeworks:files [2016/11/04 16:05]
xposik
[Homework: Files]
Line 1:
Line 1:
====== Homework: Files ======
====== Homework: Files ======
-
<WRAP
info
round>
+
<WRAP
important
round>
-
Deadline for this homework is on **Sunday, December 13, 2015, 23
:
59**.
+
See the general [[courses
:
be5b33prg:tutorials:homeworks|homework guidelines]]!
</WRAP>
</WRAP>
+
**Specifications:** You should hand in a ZIP file (with an arbitrary name) containing 2 modules with the following functions:
**Specifications:** You should hand in a ZIP file (with an arbitrary name) containing 2 modules with the following functions:
Line 106:
Line 107:
</code>
</code>
-
The order of the lines is irrelevant. **Do not forget the TOTAL BOOKS line!**
+
The order of the lines is irrelevant. **Do not forget the TOTAL BOOKS line!**
If the input file is empty, the output file shall contain just the line ''TOTAL BOOKS: 0''.
**Suggestion:** There are basically 2 ways how to implement this function. You can either
**Suggestion:** There are basically 2 ways how to implement this function. You can either
Line 141:
Line 142:
Counter({'language.': 1, 'Python': 1, 'programming': 1, 'about': 0, 'This': 0, 'is': 0, 'text': 0, 'Spam.': -1})
Counter({'language.': 1, 'Python': 1, 'programming': 1, 'about': 0, 'This': 0, 'is': 0, 'text': 0, 'Spam.': -1})
</code>
</code>
+
+
The function shall return an empty ''Counter'' when both the input files are empty.
courses/be5b33prg/homeworks/files.txt
· Last modified: 2016/11/04 16:05 by
xposik