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. Iteration
52. Multiple assignment (1)
53. Multipel assignment (2)
54. Multipel assignment (3)
55. The while statement, syntax
56. The while statement, example
57. The while statement, execution (1)
58. The while statement, execution (2)
59. The while statement, example
60. The while statement, example 2 (1)
61. The while statement, example 2 (2)
62. The while statement, example 3 (1)
63. The while statement, example 3 (2)
64. The while statement, printing a table
65. Encapsulation (1)
66. Encapsulation (2)
67. Encapsulation (3)
68. Why encapsulation is useful
69. Generalization (1)
70. Generalization (2)
71. Generalization (3)
72. Generalization (3)
73. Local variables (1)
74. Local variables (2)
75. Local variables and while loops (1)
76. Local variables and while loops (2)
77. Strings
78. Compound data type, syntax of bracket operator
79. Bracket operator, non-negative index
80. Bracket operator, negative index
81. Bracket operator, string slices
82. Bracket operator, string slices, non-negative indices I and J
83. Bracket operator, string slices, non-negative indices I and J
84. Bracket operator, example (1)
85. Bracket operator, example (2)
86. Bracket operator, example (3)
87. Bracket operator, example (4)
88. Bracket operator, example (5)
89. Bracket operator, example (6)
90. Bracket operator, example (7)
91. The string module
92. The string module
93. Lists
94. What is a list?
95. Creation
96. Printing
97. Accessing single elements
98. Accessing slices
99. Consecutively accessing elements (1)
100. Consecutively accessing elements (2)
101. Consecutively accessing elements (3)
102. Strings are unmutable, lists are mutable (1)
103. Strings are unmutable, lists are mutable (2)
104. Mutable lists: updating slices
105. List as objects (1)
106. List as objects (2)
107. List as objects (3)
108. List as objects (4)
109. List as objects (5)
110. List as objects, cloning lists
111. List as objects, cloning lists
112. Nested lists
113. Accessing a nested list
114. Accessing an element (or slice) in a nested list
115. Accessing all elements in nested lists (1)
116. Accessing all elements in nested lists (2)
117. Accessing all elements in nested lists (3)
118. Accessing all elements in nested lists (4)
119. String to list conversion (1)
120. String to list conversion (2)
121. String to list conversion (3)
122. Files and exceptions
123. Computer memory and files
124. Opening and closing a file for reading: file and close
125. Opening and closing a file for writing: file and close
126. Reading a whole text file at once: read()
127. Reading a whole text file at once: readlines()
128. Writing to a text file: write()
129. Writing to a text file: write()