CourseWare Wiki
Switch Term
Winter 2024 / 2025
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
spam
step1
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
2015/11/30 15:29 xposik [Specifications]
2015/11/26 09:13 xposik [Specifications]
2015/11/26 09:13 xposik [Specifications]
2015/11/26 09:12 xposik
2015/10/15 14:48 xposik [Preparation]
2015/10/15 14:48 xposik [Preparation]
2015/10/15 14:47 xposik [Preparation]
2015/10/15 14:45 xposik [Preparation]
2015/10/15 14:44 xposik [Preparation]
2015/10/15 14:09 xposik
2015/10/15 14:07 xposik
2015/10/15 14:07 xposik
2015/10/15 13:55 xposik [Spam filter - step 1]
2015/10/15 13:55 xposik created
Go
Next revision
Previous revision
2015/11/30 15:29 xposik [Specifications]
2015/11/26 09:13 xposik [Specifications]
2015/11/26 09:13 xposik [Specifications]
2015/11/26 09:12 xposik
2015/10/15 14:48 xposik [Preparation]
2015/10/15 14:48 xposik [Preparation]
2015/10/15 14:47 xposik [Preparation]
2015/10/15 14:45 xposik [Preparation]
2015/10/15 14:44 xposik [Preparation]
2015/10/15 14:09 xposik
2015/10/15 14:07 xposik
2015/10/15 14:07 xposik
2015/10/15 13:55 xposik [Spam filter - step 1]
2015/10/15 13:55 xposik created
Go
Next revision
Both sides next revision
courses:be5b33prg:homeworks:spam:step1 [2015/10/15 14:45]
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
''
if __name__ == "__main__":
''
|
* 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