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 Both sides next revision
courses:be5b33prg:homeworks:spam:step1 [2015/10/15 14:47]
xposik [Preparation]
courses:be5b33prg:homeworks:spam:step1 [2015/10/15 14:48]
xposik [Preparation]
Line 10: Line 10:
 =====Preparation===== =====Preparation=====
  
-++++ Working with a //dictionary// |+++++ Working with a dictionary |
   * See {[a4b99rph:​Pilgrim2009]},​ chapter [[http://​www.diveinto.org/​python3/​native-datatypes.html#​dictionaries|2.7]],​ or {[a4b99rph:​Wentworth2012]},​ chapter [[http://​openbookproject.net/​thinkcs/​python/​english3e/​dictionaries.html|20]]).   * See {[a4b99rph:​Pilgrim2009]},​ chapter [[http://​www.diveinto.org/​python3/​native-datatypes.html#​dictionaries|2.7]],​ or {[a4b99rph:​Wentworth2012]},​ chapter [[http://​openbookproject.net/​thinkcs/​python/​english3e/​dictionaries.html|20]]).
   * How to create an empty dictionary.   * How to create an empty dictionary.
Line 21: Line 21:
 </​code>​ </​code>​
 ++++ ++++
-++++Working with (text) files|+ 
 +++++ Working with (text) files |
   *(viz {[a4b99rph:​Pilgrim2009]},​ chapter [[http://​diveinto.org/​python3/​files.html|11]],​ or {[a4b99rph:​Wentworth2012]},​ chapter [[http://​openbookproject.net/​thinkcs/​python/​english3e/​files.html|13]]).   *(viz {[a4b99rph:​Pilgrim2009]},​ chapter [[http://​diveinto.org/​python3/​files.html|11]],​ or {[a4b99rph:​Wentworth2012]},​ chapter [[http://​openbookproject.net/​thinkcs/​python/​english3e/​files.html|13]]).
   * How to open and close a text file.   * How to open and close a text file.
Line 27: Line 28:
   * Reading a file line by line.   * Reading a file line by line.
   * Reading the whole file contents as a single string.   * Reading the whole file contents as a single string.
-++++The usage of section <​code>​if __name__ == "​__main__":</​code>​|+++++ 
 + 
 +++++ The usage of section <​code>​if __name__ == "​__main__":</​code>​ |
   * See {[a4b99rph:​Pilgrim2009]},​ chapter [[http://​diveinto.org/​python3/​your-first-python-program.html#​runningscripts|1.10]]).   * See {[a4b99rph:​Pilgrim2009]},​ chapter [[http://​diveinto.org/​python3/​your-first-python-program.html#​runningscripts|1.10]]).
 ++++ ++++
-++++Method ''​split()''​ of string values|+ 
 +++++ Method ''​split()''​ of string values |
   * See the Python docs for [[http://​docs.python.org/​py3k/​library/​stdtypes.html?​highlight=split#​str.split|str.split()]])   * See the Python docs for [[http://​docs.python.org/​py3k/​library/​stdtypes.html?​highlight=split#​str.split|str.split()]])
 ++++ ++++
courses/be5b33prg/homeworks/spam/step1.txt · Last modified: 2015/11/30 15:29 by xposik