Skip to content

Commit 1b89fff

Browse files
committed
Deploying to gh-pages from @ 5d2436d 🚀
0 parents  commit 1b89fff

File tree

8 files changed

+346
-0
lines changed

8 files changed

+346
-0
lines changed

.nojekyll

Whitespace-only changes.

DEPENDENCIES.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!doctype html><meta content="width=device-width,initial-scale=1"name=viewport><title>Programming with Python: Dependencies</title><style>@media only screen and (orientation:portrait){body{padding:max(.2em,2px)}div.document{max-width:min(98%,98vw)}div.content{max-width:min(98%,97vw);margin:max(1px,.1em);padding:.5em}div.toc{margin:max(1em,5px)}}@media only screen and (orientation:landscape){body{padding:max(.2em,2px) max(2em,40px,5%);font-size:105%}div.document{max-width:min(27cm,78em,98%);margin:0 auto}div.content{margin:max(1em,5px);padding:.5em 1em}div.toc{margin:max(1em,5px) 2em 2em max(1em,5px)}}body{text-align:center;color:#000;background-color:#ebf5fb;max-width:99vw;font-family:Lucida Grande,Lucida Sans Unicode,Geneva,Verdana,sans-serif;line-height:150%}div.document{text-align:center}div.content{float:left;text-align:left;background-color:#fff;border:1px solid #ccc}div.toc{float:left;text-align:left;background-color:#ebf5fb;border:1px solid #ccc;outline:max(4px,.2em) solid #fff;max-width:max(25%,min(8cm,22em));padding:.6em}code{white-space:nowrap;color:#333;background-color:#f2f2f2;border-bottom:1px solid #ddd;border-radius:3px;max-width:99%}ul.toc{max-width:99%;margin:min(2px,.2em);padding:0;list-style-position:inside}li.toc{margin:min(2px,.2em);padding-left:1em}p{margin:.8em 0 .5em}a{color:#369;text-decoration:none}a:hover{color:#369;text-decoration:underline}a:visited{color:#551a8b}h1,h2,h3{color:#369}h1{margin:0;padding:.7em 0 .3em;font-size:1.7em}h2{border-bottom:1px solid #369;margin:1.3em 0 .2em;padding-bottom:.5em;font-size:1.35em}h3{border-bottom:1px solid #ccc;margin:1em 0 -.3em;padding-bottom:.3em;font-size:1.2em}div.body h1 a,div.body h2 a,div.body h3 a,div.body h4 a,div.body h5 a,div.body h6 a{color:#000!important}h1 a.anchor,h2 a.anchor,h3 a.anchor,h4 a.anchor,h5 a.anchor,h6 a.anchor{margin:0 0 0 .3em;padding:0 .2em;display:none;color:#aaa!important}h1:hover a.anchor,h2:hover a.anchor,h3:hover a.anchor,h4:hover a.anchor,h5:hover a.anchor,h6:hover a.anchor{display:inline}h1 a.anchor:hover,h2 a.anchor:hover,h3 a.anchor:hover,h4 a.anchor:hover,h5 a.anchor:hover,h6 a.anchor:hover{color:#777;background-color:#eee}div.date{text-align:right;border-top:1px solid #369;max-width:99%;margin-top:1cm;padding-top:.2em;padding-right:.6em;font-size:85%}pre{letter-spacing:.015em;border-left:5px solid #ccc;border-right:5px solid #ccc;max-width:99%;padding:.5em;font-family:Consolas,Deja Vu Sans Mono,Bitstream Vera Sans Mono,monospace;font-size:.95em;line-height:120%;overflow:scroll;background-color:#0000!important}</style><body><div class=document><div class=content><div>${toc}<h2>Programming with Python Dependencies</h2><pre>
2+
Alpine Linux 3.21.2
3+
Linux 6.8.0-1020-azure x86_64
4+
5+
python: 3.12.8
6+
latexgit_py: 0.8.27
7+
pycommons: 0.8.64
8+
pdflatex: pdfTeX 3.141592653-2.6-1.40.26 (TeX Live 2024)
9+
biber: 2.20
10+
makeglossaries: 4.55 (2024-11-01)
11+
ghostscript: 10.04.0 (2024-09-18)
12+
13+
date: 2025-02-05 08:29:33 +0000
14+
</pre><p>python3 -m pip freeze<pre>
15+
astroid==3.3.8
16+
dill==0.3.9
17+
iniconfig==2.0.0
18+
isort==6.0.0
19+
latexgit==0.8.27
20+
Markdown==3.7
21+
mccabe==0.7.0
22+
minify_html==0.15.0
23+
mypy==1.15.0
24+
mypy-extensions==1.0.0
25+
packaging==24.2
26+
platformdirs==4.3.6
27+
pluggy==1.5.0
28+
psutil==6.1.1
29+
pycommons==0.8.64
30+
Pygments==2.18.0
31+
pylint==3.3.4
32+
pytest==8.3.4
33+
pytest-timeout==2.3.1
34+
ruff==0.9.4
35+
strip-hints==0.1.10
36+
tomlkit==0.13.2
37+
typing_extensions==4.12.2
38+
wheel==0.45.1
39+
yapf==0.43.0
40+
</pre></div><div class=date>built on: 2025-02-05 08:29:34 +0000</div></div></div>

DEPENDENCIES.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
## Programming with Python Dependencies
2+
3+
```
4+
Alpine Linux 3.21.2
5+
Linux 6.8.0-1020-azure x86_64
6+
7+
python: 3.12.8
8+
latexgit_py: 0.8.27
9+
pycommons: 0.8.64
10+
pdflatex: pdfTeX 3.141592653-2.6-1.40.26 (TeX Live 2024)
11+
biber: 2.20
12+
makeglossaries: 4.55 (2024-11-01)
13+
ghostscript: 10.04.0 (2024-09-18)
14+
15+
date: 2025-02-05 08:29:33 +0000
16+
```
17+
18+
python3 -m pip freeze
19+
20+
```
21+
astroid==3.3.8
22+
dill==0.3.9
23+
iniconfig==2.0.0
24+
isort==6.0.0
25+
latexgit==0.8.27
26+
Markdown==3.7
27+
mccabe==0.7.0
28+
minify_html==0.15.0
29+
mypy==1.15.0
30+
mypy-extensions==1.0.0
31+
packaging==24.2
32+
platformdirs==4.3.6
33+
pluggy==1.5.0
34+
psutil==6.1.1
35+
pycommons==0.8.64
36+
Pygments==2.18.0
37+
pylint==3.3.4
38+
pytest==8.3.4
39+
pytest-timeout==2.3.1
40+
ruff==0.9.4
41+
strip-hints==0.1.10
42+
tomlkit==0.13.2
43+
typing_extensions==4.12.2
44+
wheel==0.45.1
45+
yapf==0.43.0
46+
```

LICENSE.html

Lines changed: 18 additions & 0 deletions
Large diffs are not rendered by default.

LICENSE.md

Lines changed: 175 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Programming with Python
2+
3+
## 1. Introduction
4+
5+
*"Programming with Python"* is both a book and a course held at [Hefei University](http://www.hfuu.edu.cn/english/) ([合肥大学](http://www.hfuu.edu.cn/)).
6+
We here provide all the resources of this course.
7+
8+
The goal of the course and book is to teach undergraduate and graduate students how to program with the Python programming language.
9+
The resources may also be suitable to high school students or whoever else may be interested in the topic.
10+
Our aim is to strike a good balance between theory and practice, leaning more to the practice side.
11+
In particular, we try to teach programming together with some software engineering concepts.
12+
It is the firm opinion of the author that these two cannot be separated.
13+
Teaching programming alone without introducing tools such as static code analysis, unit tests, and enforcing principles such as code style and proper commenting will create bad programmers.
14+
So we discuss these aspects while working our way through the principles of programming.
15+
16+
17+
## 2. Resources
18+
The website with up-to-date information about the course is <https://thomasweise.github.io/programmingWithPython>.
19+
20+
### 2.1. The Book
21+
The book itself can be downloaded as pdf at <https://thomasweise.github.io/programmingWithPython/programmingWithPython.pdf>.
22+
23+
### 2.2. The Slides
24+
The slides for the course are available at <https://thomasweise.github.io/programmingWithPythonSlides> and also listed below.
25+
26+
1. [Introduction](https://thomasweise.github.io/programmingWithPythonSlides/01_introduction.pdf)
27+
2. [Getting Started](https://thomasweise.github.io/programmingWithPythonSlides/02_getting_started.pdf)
28+
29+
### 2.3. The Example Python Programs
30+
Our course offers a lot of examples.
31+
You can find all of them in the repository <https://github.com/thomasWeise/programmingWithPythonCode>.
32+
33+
34+
### 2.4. LaTeX Sources, Graphics, Bibliography, etc.
35+
Both the book and the slides are written in LaTeX.
36+
You can find their sources in <https://github.com/thomasWeise/programmingWithPython> and <https://github.com/thomasWeise/programmingWithPythonSlides>, respectively.
37+
You may use these files under the licensing terms provided below.
38+
39+
40+
## 3. License
41+
All the course material is freely available.
42+
You can download its newest version from <https://thomasweise.github.io/programmingWithPython>.
43+
This version may change since this course and book both are work in progress.
44+
You can freely share this.
45+
You can also copy text or figures under the license given below, as long as you cite the book as the original source, e.g., by using the following BibTeX:
46+
47+
<pre>@book{programmingWithPython,<br/>&nbsp;author&nbsp;=&nbsp;{<a href="http://iao.hfuu.edu.cn/5">Thomas&nbsp;Weise</a>},<br/>&nbsp;title&nbsp;=&nbsp;{Programming&nbsp;with&nbsp;Python},<br/>&nbsp;year&nbsp;=&nbsp;{2024--2025},<br/>&nbsp;publisher&nbsp;=&nbsp;{<a href="http://iao.hfuu.edu.cn">Institute&nbsp;of&nbsp;Applied&nbsp;Optimization</a>,<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.hfuu.edu.cn/aibd">School&nbsp;of&nbsp;Artificial&nbsp;Intelligence&nbsp;and&nbsp;Big&nbsp;Data</a>,<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.hfuu.edu.cn/">Hefei&nbsp;University</a>},<br/>&nbsp;address&nbsp;=&nbsp;{Hefei,&nbsp;Anhui,&nbsp;China},<br/>&nbsp;url&nbsp;=&nbsp;{<a href="https://thomasweise.github.io/programmingWithPython">https://thomasweise.github.io/programmingWithPython</a>}<br/>}</pre>
48+
49+
**If you have any comments or suggestions regarding the book, or if you spotted an error or typo, please feel free to submit an [issue here](https://github.com/thomasWeise/programmingWithPython/issues).**
50+
Your feedback would help us to improve the book.
51+
52+
This book is released under the Attribution-NonCommercial-ShareAlike 4.0 International license (CC&nbsp;BY&#8209;NC&#8209;SA&nbsp;4.0), see [http://creativecommons.org/licenses/by-nc-sa/4.0/](http://creativecommons.org/licenses/by-nc-sa/4.0/) for a summary.
53+
54+
We statically include the [pdfsizeopt](https://github.com/pts/pdfsizeopt) tool in the [GitHub Repository](https://github.com/thomasWeise/programmingWithPython) of our book and use it during the book compiling and building process to compress the book pdf file.
55+
This tool is excluded from the license mentioned above.
56+
It is under the GNU GENERAL PUBLIC LICENSE Version 2, June 1991 and the copyright belongs to its authors.
57+
58+
59+
## 4. Contact
60+
If you have any questions or suggestions, please contact
61+
Prof. Dr. [Thomas Weise](http://iao.hfuu.edu.cn/5) (汤卫思教授)
62+
at the Institute of Applied Optimization (应用优化研究所, [IAO](http://iao.hfuu.edu.cn))
63+
of the School of Artificial Intelligence and Big Data ([人工智能与大数据学院](http://www.hfuu.edu.cn/aibd))
64+
of [Hefei University](http://www.hfuu.edu.cn/english/) ([合肥大学](http://www.hfuu.edu.cn/)),
65+
in Hefei, Anhui, China (中国安徽省合肥市)
66+
via email to [[email protected]](mailto:[email protected]) with CC to [[email protected]](mailto:[email protected]).

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!doctype html><meta content="width=device-width,initial-scale=1"name=viewport><title>Programming with Python</title><style>@media only screen and (orientation:portrait){body{padding:max(.2em,2px)}div.document{max-width:min(98%,98vw)}div.content{max-width:min(98%,97vw);margin:max(1px,.1em);padding:.5em}div.toc{margin:max(1em,5px)}}@media only screen and (orientation:landscape){body{padding:max(.2em,2px) max(2em,40px,5%);font-size:105%}div.document{max-width:min(27cm,78em,98%);margin:0 auto}div.content{margin:max(1em,5px);padding:.5em 1em}div.toc{margin:max(1em,5px) 2em 2em max(1em,5px)}}body{text-align:center;color:#000;background-color:#ebf5fb;max-width:99vw;font-family:Lucida Grande,Lucida Sans Unicode,Geneva,Verdana,sans-serif;line-height:150%}div.document{text-align:center}div.content{float:left;text-align:left;background-color:#fff;border:1px solid #ccc}div.toc{float:left;text-align:left;background-color:#ebf5fb;border:1px solid #ccc;outline:max(4px,.2em) solid #fff;max-width:max(25%,min(8cm,22em));padding:.6em}code{white-space:nowrap;color:#333;background-color:#f2f2f2;border-bottom:1px solid #ddd;border-radius:3px;max-width:99%}ul.toc{max-width:99%;margin:min(2px,.2em);padding:0;list-style-position:inside}li.toc{margin:min(2px,.2em);padding-left:1em}p{margin:.8em 0 .5em}a{color:#369;text-decoration:none}a:hover{color:#369;text-decoration:underline}a:visited{color:#551a8b}h1,h2,h3{color:#369}h1{margin:0;padding:.7em 0 .3em;font-size:1.7em}h2{border-bottom:1px solid #369;margin:1.3em 0 .2em;padding-bottom:.5em;font-size:1.35em}h3{border-bottom:1px solid #ccc;margin:1em 0 -.3em;padding-bottom:.3em;font-size:1.2em}div.body h1 a,div.body h2 a,div.body h3 a,div.body h4 a,div.body h5 a,div.body h6 a{color:#000!important}h1 a.anchor,h2 a.anchor,h3 a.anchor,h4 a.anchor,h5 a.anchor,h6 a.anchor{margin:0 0 0 .3em;padding:0 .2em;display:none;color:#aaa!important}h1:hover a.anchor,h2:hover a.anchor,h3:hover a.anchor,h4:hover a.anchor,h5:hover a.anchor,h6:hover a.anchor{display:inline}h1 a.anchor:hover,h2 a.anchor:hover,h3 a.anchor:hover,h4 a.anchor:hover,h5 a.anchor:hover,h6 a.anchor:hover{color:#777;background-color:#eee}div.date{text-align:right;border-top:1px solid #369;max-width:99%;margin-top:1cm;padding-top:.2em;padding-right:.6em;font-size:85%}pre{letter-spacing:.015em;border-left:5px solid #ccc;border-right:5px solid #ccc;max-width:99%;padding:.5em;font-family:Consolas,Deja Vu Sans Mono,Bitstream Vera Sans Mono,monospace;font-size:.95em;line-height:120%;overflow:scroll;background-color:#0000!important}</style><body><div class=document><div class=content><div><div class=toc><ul class=toc><li class=toc><a href=#k1>1. Introduction</a><li class=toc><a href=#k2>2. Resources</a><ul class=toc><li class=toc><a href=#k5>2.1. The Book</a><li class=toc><a href=#k6>2.2. The Slides</a><li class=toc><a href=#k7>2.3. The Example Python Programs</a><li class=toc><a href=#k8>2.4. LaTeX Sources, Graphics, Bibliography, etc.</a></ul><li class=toc><a href=#k3>3. License</a><li class=toc><a href=#k4>4. Contact</a></ul></div><h1 id=k0>Programming with Python</h1><h2 id=k1>1. Introduction</h2><p><em>"Programming with Python"</em> is both a book and a course held at <a href=http://www.hfuu.edu.cn/english/>Hefei University</a> (<a href=http://www.hfuu.edu.cn/>合肥大学</a>). We here provide all the resources of this course.<p>The goal of the course and book is to teach undergraduate and graduate students how to program with the Python programming language. The resources may also be suitable to high school students or whoever else may be interested in the topic. Our aim is to strike a good balance between theory and practice, leaning more to the practice side. In particular, we try to teach programming together with some software engineering concepts. It is the firm opinion of the author that these two cannot be separated. Teaching programming alone without introducing tools such as static code analysis, unit tests, and enforcing principles such as code style and proper commenting will create bad programmers. So we discuss these aspects while working our way through the principles of programming.<h2 id=k2>2. Resources</h2><p>The website with up-to-date information about the course is <a href=https://thomasweise.github.io/programmingWithPython>https://thomasweise.github.io/programmingWithPython</a>.<h3 id=k5>2.1. The Book</h3><p>The book itself can be downloaded as pdf at <a href=./programmingWithPython.pdf>https://thomasweise.github.io/programmingWithPython/programmingWithPython.pdf</a>.<h3 id=k6>2.2. The Slides</h3><p>The slides for the course are available at <a href=https://thomasweise.github.io/programmingWithPythonSlides>https://thomasweise.github.io/programmingWithPythonSlides</a> and also listed below.<ol><li><a href=https://thomasweise.github.io/programmingWithPythonSlides/01_introduction.pdf>Introduction</a><li><a href=https://thomasweise.github.io/programmingWithPythonSlides/02_getting_started.pdf>Getting Started</a></ol><h3 id=k7>2.3. The Example Python Programs</h3><p>Our course offers a lot of examples. You can find all of them in the repository <a href=https://github.com/thomasWeise/programmingWithPythonCode>https://github.com/thomasWeise/programmingWithPythonCode</a>.<h3 id=k8>2.4. LaTeX Sources, Graphics, Bibliography, etc.</h3><p>Both the book and the slides are written in LaTeX. You can find their sources in <a href=https://github.com/thomasWeise/programmingWithPython>https://github.com/thomasWeise/programmingWithPython</a> and <a href=https://github.com/thomasWeise/programmingWithPythonSlides>https://github.com/thomasWeise/programmingWithPythonSlides</a>, respectively. You may use these files under the licensing terms provided below.<h2 id=k3>3. License</h2><p>All the course material is freely available. You can download its newest version from <a href=https://thomasweise.github.io/programmingWithPython>https://thomasweise.github.io/programmingWithPython</a>. This version may change since this course and book both are work in progress. You can freely share this. You can also copy text or figures under the license given below, as long as you cite the book as the original source, e.g., by using the following BibTeX:<pre>@book{programmingWithPython,<br> author = {<a href=http://iao.hfuu.edu.cn/5>Thomas Weise</a>},<br> title = {Programming with Python},<br> year = {2024--2025},<br> publisher = {<a href=http://iao.hfuu.edu.cn>Institute of Applied Optimization</a>,<br>              <a href=http://www.hfuu.edu.cn/aibd>School of Artificial Intelligence and Big Data</a>,<br>              <a href=http://www.hfuu.edu.cn/>Hefei University</a>},<br> address = {Hefei, Anhui, China},<br> url = {<a href=https://thomasweise.github.io/programmingWithPython>https://thomasweise.github.io/programmingWithPython</a>}<br>}</pre><p><strong>If you have any comments or suggestions regarding the book, or if you spotted an error or typo, please feel free to submit an <a href=https://github.com/thomasWeise/programmingWithPython/issues>issue here</a>.</strong> Your feedback would help us to improve the book.<p>This book is released under the Attribution-NonCommercial-ShareAlike 4.0 International license (CC BY‑NC‑SA 4.0), see <a href=http://creativecommons.org/licenses/by-nc-sa/4.0/>http://creativecommons.org/licenses/by-nc-sa/4.0/</a> for a summary.<p>We statically include the <a href=https://github.com/pts/pdfsizeopt>pdfsizeopt</a> tool in the <a href=https://github.com/thomasWeise/programmingWithPython>GitHub Repository</a> of our book and use it during the book compiling and building process to compress the book pdf file. This tool is excluded from the license mentioned above. It is under the GNU GENERAL PUBLIC LICENSE Version 2, June 1991 and the copyright belongs to its authors.<h2 id=k4>4. Contact</h2><p>If you have any questions or suggestions, please contact Prof. Dr. <a href=http://iao.hfuu.edu.cn/5>Thomas Weise</a> (汤卫思教授) at the Institute of Applied Optimization (应用优化研究所, <a href=http://iao.hfuu.edu.cn>IAO</a>) of the School of Artificial Intelligence and Big Data (<a href=http://www.hfuu.edu.cn/aibd>人工智能与大数据学院</a>) of <a href=http://www.hfuu.edu.cn/english/>Hefei University</a> (<a href=http://www.hfuu.edu.cn/>合肥大学</a>), in Hefei, Anhui, China (中国安徽省合肥市) via email to <a href=mailto:[email protected]>[email protected]</a> with CC to <a href=mailto:[email protected]>[email protected]</a>.</div><div class=date>built on: 2025-02-05 08:29:32 +0000</div></div></div>

programmingWithPython.pdf

7.1 MB
Binary file not shown.

0 commit comments

Comments
 (0)