Skip to content

Commit a788442

Browse files
committed
minor fixes
1 parent 3180f1c commit a788442

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Die Slides zum Kurs in deutscher Sprache können unter <https://thomasweise.gith
2929
4. [PyCharm Installieren](https://thomasweise.github.io/programmingWithPythonSlidesDE/04_pycharm_installieren.pdf)
3030
5. [Programme Erstellen und Ausführen](https://thomasweise.github.io/programmingWithPythonSlidesDE/05_programme_erstellen_und_ausführen.pdf)
3131
6. [Beispiele Herunterladen](https://thomasweise.github.io/programmingWithPythonSlidesDE/06_beispiele_herunterladen.pdf)
32+
7. [Der Datentyp `int`](https://thomasweise.github.io/programmingWithPythonSlidesDE/06_int.pdf)
3233

3334
### 2.3. The Slides in English
3435
The slides for the course are available at <https://thomasweise.github.io/programmingWithPythonSlides> and also listed below.

text/main/basics/simpleDataTypesAndOperations/int/int.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
For example, $2^7$~is expressed as \pythonil{2 ** 7}\pythonIdx{**!power} in \python\ (and yields~\pythonil{128}).
7878
\pythonil{7 ** 11}, i.e., $7^{11}$ gives us~1\decSep977\decSep326\decSep743 and shows as \pythonil{1977326743} in the output.
7979

80-
In most programming languages such as \pgls{Java} and \pgls{C}, the largest integer type available off the shelf is 64~bits wide.
80+
In many programming languages such as \pgls{Java} and \pgls{C}, the largest integer type available off the shelf is 64~bits wide.
8181
If it is signed (can have negative values) like \pgls{Java}'s \pythonil{long}, it has range~\intRange{-2^{63}}{2^{63}-1}.
8282
An unsinged 64~bit integer type, such as \pythonil{unsigned long long} in \pgls{C}, would have range~\intRange{0}{2^{64}-1}.
8383
In \python\, we can compute $2^{63}$~(\pythonil{2 ** 63}), namely 9\decSep223\decSep372\decSep036\decSep854\decSep775\decSep808, and

text/main/basics/simpleDataTypesAndOperations/introduction/introduction.tex

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,21 @@
88
\item \pythonil{exit()}\pythonIdx{exit} exits and terminates the \python\ interpreter.%
99
\end{itemize}%
1010
%
11-
Now, it would be very strange if the \pythonil{print} function could print \inQuotes{Hello World!}.
11+
Now, it would be very strange if the \pythonil{print} function could \emph{only} print \inQuotes{Hello World!}.
1212
That would not make much sense.
1313
\pythonilIdx{print} expects one parameter.
14-
This parameter cannot just be anything.
15-
It must be a text.
14+
This parameter should be a text\footnote{Or it needs to support a certain method so that it can be comverted to a text, but please let's ignore this for now.}.
1615

1716
The command \pythonilIdx{exit}, on the other hand, can either have no parameter or one parameter.
1817
If it receives one parameter, this parameter will be the \pgls{exitCode} of the program.
19-
Here, \pythonil{0} indicates success.
18+
Here, \pythonil{0}~indicates success.
2019
If no parameter is provided, this will be used as default value.
21-
We need to invoke \pythonilIdx{exit} if we use the \python\ console in the \pgls{terminal} explicitly.
22-
If we just run a program, then after the last instruction of the program was executed, then the interpreter will also terminate with \pgls{exitCode}~0.
23-
Indeed, when we executed our first program in \cref{sec:ourFirstProgram}, we saw exactly that happen in \cref{fig:firstProgram10programResult}.
24-
Different from the parameter of \pythonil{print}, which must be some text, the parameter of \pythonil{exit} needs to be a number.
2520

2621
We realize:
2722
Distinguishing different types of data makes sense.
2823
Sometimes we need to do something with text.
2924
Sometimes we want to do something with numbers.
30-
Somtimes, we want to just handle a decision which can be either \inQuotes{yes} or \inQuotes{no}.
25+
Sometimes, we want to just handle a decision which can be either \inQuotes{yes} or \inQuotes{no}.
3126

3227
Of course, for these different situations, different possible operations may be useful.
3328
For example, when we use numbers, we may want to divide or multiply them.

0 commit comments

Comments
 (0)