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.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
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