Programming Python

Table of Contents

1. The way of the program
2. Why learning programming?
3. Choosing a programming language
4. Compiled languages
5. Interpreted languages
6. Low-level languages versus high-level languages
7. Low-level language: example program (C++)
8. High-level language: example program (C++)
9. Low-level languages versus high-level languages
10. Examples of computer languages
11. Python
12. Some examples of Python applications
13. Some examples of Python applications
14. Some examples of Python applications
15. Variables, expressions and statements
16. "Appels en peren": types
17. Which type applies to what?
18. Variables
19. Variable names
20. Evaluating expressions
21. Creating and running a python program
22. Python command line mode
23. Functions
24. Syntax
25. Syntax, examples (1)
26. Syntax, examples (2)
27. Syntax, examples (3)
28. Python modules with functions
29. Adding new functions
30. Function definition: syntax
31. Function definition: example
32. Variables in a function are local (1)
33. Variables in a function are local (2)
34. Reasons to use user defined functions
35. Conditionals and recursion
36. Jan is taller than Piet: comparison operators (1)
37. Comparison operators (2)
38. Logical operators
39. Combining logical and comparison operators
40. If it rains, I stay at home: conditional execution
41. Conditional execution, example 1
42. Conditional execution, example
43. If it rains, I stay at home, else I go swimming: alternative execution
44. Alternative execution, example
45. Alternative execution, example
46. If it rains, I stay at home, else if it is also hot I go swimming, else..: chained conditionals
47. Chained conditionals, example
48. Chained conditionals, example
49. User intervention: keyboard input (1)
50. User intervention: keyboard input (2)
51. Fruitful functions & program development
52. Iteration
53. Multiple assignment (1)
54. Multipel assignment (2)
55. Multipel assignment (3)
56. The while statement, syntax
57. The while statement, example
58. The while statement, execution (1)
59. The while statement, execution (2)
60. The while statement, example
61. The while statement, example 2 (1)
62. The while statement, example 2 (2)
63. The while statement, example 3 (1)
64. The while statement, example 3 (2)
65. The while statement, printing a table
66. Encapsulation (1)
67. Encapsulation (2)
68. Encapsulation (3)
69. Why encapsulation is useful
70. Generalization (1)
71. Generalization (2)
72. Generalization (3)
73. Generalization (3)
74. Local variables (1)
75. Local variables (2)
76. Local variables and while loops (1)
77. Local variables and while loops (2)
78. Strings
79. Compound data type, syntax of bracket operator
80. Bracket operator, non-negative index
81. Bracket operator, negative index
82. Bracket operator, string slices
83. Bracket operator, string slices, non-negative indices I and J
84. Bracket operator, string slices, non-negative indices I and J
85. Bracket operator, example (1)
86. Bracket operator, example (2)
87. Bracket operator, example (3)
88. Bracket operator, example (4)
89. Bracket operator, example (5)
90. Bracket operator, example (6)
91. Bracket operator, example (7)
92. The string module
93. The string module
94. Lists
95. What is a list?
96. Creation
97. Printing
98. Accessing single elements
99. Accessing slices
100. Consecutively accessing elements (1)
101. Consecutively accessing elements (2)
102. Consecutively accessing elements (3)
103. Strings are unmutable, lists are mutable (1)
104. Strings are unmutable, lists are mutable (2)
105. Mutable lists: updating slices
106. List as objects (1)
107. List as objects (2)
108. List as objects (3)
109. List as objects (4)
110. List as objects (5)
111. List as objects, cloning lists
112. List as objects, cloning lists
113. Nested lists
114. Accessing a nested list
115. Accessing an element (or slice) in a nested list
116. Accessing all elements in nested lists (1)
117. Accessing all elements in nested lists (2)
118. Accessing all elements in nested lists (3)
119. Accessing all elements in nested lists (4)
120. String to list conversion (1)
121. String to list conversion (2)
122. String to list conversion (3)
123. Files and exceptions
124. Computer memory and files
125. Opening and closing a file for reading: file and close
126. Opening and closing a file for writing: file and close
127. Reading a whole text file at once: read()
128. Reading a whole text file at once: readlines()
129. Writing to a text file: write()
130. Writing to a text file: write()