|
1 | 1 | { |
2 | | - "title": "Your first program: <code class=\"language-python\">print()</code>", |
| 2 | + "title": "Your First Program: <code class=\"language-python\">print()</code>", |
3 | 3 | "description": "", |
4 | 4 | "content": [ |
5 | 5 | { |
6 | 6 | "type": "subtitle1", |
7 | | - "text": "What is a program in Python?" |
| 7 | + "text": "What is a Program in Python?" |
8 | 8 | }, |
9 | 9 | { |
10 | 10 | "type": "paragraph", |
|
16 | 16 | }, |
17 | 17 | { |
18 | 18 | "type": "subtitle1", |
19 | | - "text": "The <code class=\"language-python\">print()</code> function: your first tool" |
| 19 | + "text": "The <code class=\"language-python\">print()</code> Function: Your First Tool" |
20 | 20 | }, |
21 | 21 | { |
22 | 22 | "type": "paragraph", |
|
40 | 40 | }, |
41 | 41 | { |
42 | 42 | "type": "test-button", |
43 | | - "text": "Try it >>", |
| 43 | + "text": "Try >>", |
44 | 44 | "code": "print(\"Hello, World\")" |
45 | 45 | }, |
46 | 46 | { |
|
49 | 49 | }, |
50 | 50 | { |
51 | 51 | "type": "subtitle1", |
52 | | - "text": "What can I display with <code class=\"language-python\">print()</code>?" |
| 52 | + "text": "What Can I Display With <code class=\"language-python\">print()</code>?" |
53 | 53 | }, |
54 | 54 | { |
55 | 55 | "type": "subtitle2", |
56 | | - "text": "Text (strings - <code class=\"language-python\">str</code>)" |
| 56 | + "text": "Text (Strings - <code class=\"language-python\">str</code>)" |
57 | 57 | }, |
58 | 58 | { |
59 | 59 | "type": "code", |
|
77 | 77 | }, |
78 | 78 | { |
79 | 79 | "type": "test-button", |
80 | | - "text": "Try them all >>", |
| 80 | + "text": "Try Them All >>", |
81 | 81 | "code": "print(\"Learning Python is fun\")\n\nprint(2025)\n\nname = \"Python\"\nprint(name)" |
82 | 82 | }, |
83 | 83 | { |
|
94 | 94 | }, |
95 | 95 | { |
96 | 96 | "type": "subtitle1", |
97 | | - "text": "Display multiple values at once" |
| 97 | + "text": "Display Multiple Values At Once" |
98 | 98 | }, |
99 | 99 | { |
100 | 100 | "type": "paragraph", |
|
114 | 114 | }, |
115 | 115 | { |
116 | 116 | "type": "test-button", |
117 | | - "text": "Try it >>", |
| 117 | + "text": "Try >>", |
118 | 118 | "code": "print(\"Your age is:\", 22)" |
119 | 119 | }, |
120 | 120 | { |
|
123 | 123 | }, |
124 | 124 | { |
125 | 125 | "type": "subtitle1", |
126 | | - "text": "How <code class=\"language-python\">print()</code> works internally" |
| 126 | + "text": "How <code class=\"language-python\">print()</code> Works Internally" |
127 | 127 | }, |
128 | 128 | { |
129 | 129 | "type": "paragraph", |
|
136 | 136 | { |
137 | 137 | "type": "list", |
138 | 138 | "items": [ |
139 | | - "<code class=\"language-python\">sep</code> → Defines the separator between elements", |
140 | | - "<code class=\"language-python\">end</code> → Defines what is printed at the end of the line" |
| 139 | + "<code class=\"language-python\">sep</code> → Defines the separator between elements.", |
| 140 | + "<code class=\"language-python\">end</code> → Defines what is printed at the end of the line." |
141 | 141 | ] |
142 | 142 | }, |
143 | 143 | { |
144 | 144 | "type": "subtitle2", |
145 | | - "text": "Example using <code class=\"language-python\">sep</code>:" |
| 145 | + "text": "Example Using <code class=\"language-python\">sep</code>:" |
146 | 146 | }, |
147 | 147 | { |
148 | 148 | "type": "code", |
|
158 | 158 | }, |
159 | 159 | { |
160 | 160 | "type": "test-button", |
161 | | - "text": "Try it >>", |
| 161 | + "text": "Try >>", |
162 | 162 | "code": "print(\"Python\", \"JavaScript\", \"Go\", sep=\" | \")" |
163 | 163 | }, |
164 | 164 | { |
165 | 165 | "type": "subtitle2", |
166 | | - "text": "Example using <code class=\"language-python\">end</code>:" |
| 166 | + "text": "Example Using <code class=\"language-python\">end</code>:" |
167 | 167 | }, |
168 | 168 | { |
169 | 169 | "type": "code", |
|
179 | 179 | }, |
180 | 180 | { |
181 | 181 | "type": "test-button", |
182 | | - "text": "Try it >>", |
| 182 | + "text": "Try >>", |
183 | 183 | "code": "print(\"Hello\", end=\"...\")\nprint(\"World\")" |
184 | 184 | }, |
185 | 185 | { |
|
188 | 188 | }, |
189 | 189 | { |
190 | 190 | "type": "subtitle1", |
191 | | - "text": "Spaces, newlines, and special characters" |
| 191 | + "text": "Spaces, Newlines, and Special Characters" |
192 | 192 | }, |
193 | 193 | { |
194 | 194 | "type": "paragraph", |
|
197 | 197 | { |
198 | 198 | "type": "list", |
199 | 199 | "items": [ |
200 | | - "<code class=\"language-python\">\\n</code> → Newline", |
201 | | - "<code class=\"language-python\">\\t</code> → Tab", |
202 | | - "<code class=\"language-python\">\\\"</code> → Quotes Within Quotes", |
203 | | - "<code class=\"language-python\">\\\\</code> → Literal Backslash" |
| 200 | + "<code class=\"language-python\">\\n</code> → Newline.", |
| 201 | + "<code class=\"language-python\">\\t</code> → Tab.", |
| 202 | + "<code class=\"language-python\">\\\"</code> → Quotes Within Quotes.", |
| 203 | + "<code class=\"language-python\">\\\\</code> → Literal Backslash." |
204 | 204 | ] |
205 | 205 | }, |
206 | 206 | { |
|
221 | 221 | }, |
222 | 222 | { |
223 | 223 | "type": "test-button", |
224 | | - "text": "Try it >>", |
| 224 | + "text": "Try >>", |
225 | 225 | "code": "print(\"Line 1\\nLine 2\\nLine 3\")" |
226 | 226 | }, |
227 | 227 | { |
|
230 | 230 | }, |
231 | 231 | { |
232 | 232 | "type": "subtitle1", |
233 | | - "text": "A very common mistake when using <code class=\"language-python\">print()</code>" |
| 233 | + "text": "A Very Common Mistake When Using <code class=\"language-python\">print()</code>" |
234 | 234 | }, |
235 | 235 | { |
236 | 236 | "type": "paragraph", |
|
246 | 246 | }, |
247 | 247 | { |
248 | 248 | "type": "test-button", |
249 | | - "text": "Try error >>", |
| 249 | + "text": "Try Error >>", |
250 | 250 | "code": "print(\"Hello)" |
251 | 251 | }, |
252 | 252 | { |
253 | 253 | "type": "subtitle1", |
254 | | - "text": "Minimal structure of a Python program" |
| 254 | + "text": "Minimal Structure of a Python Program" |
255 | 255 | }, |
256 | 256 | { |
257 | 257 | "type": "code", |
|
271 | 271 | }, |
272 | 272 | { |
273 | 273 | "type": "test-button", |
274 | | - "text": "Try it >>", |
| 274 | + "text": "Try >>", |
275 | 275 | "code": "print(\"Hello from my first Python program\")" |
276 | 276 | }, |
277 | 277 | { |
|
296 | 296 | }, |
297 | 297 | { |
298 | 298 | "type": "test-button", |
299 | | - "text": "Try it >>", |
| 299 | + "text": "Try >>", |
300 | 300 | "code": "print(\"First line\")\nprint(\"Second line\")" |
301 | 301 | }, |
302 | 302 | { |
303 | 303 | "type": "subtitle1", |
304 | | - "text": "Guided exercise: your first real script" |
| 304 | + "text": "Guided Exercise: Your First Real Script" |
305 | 305 | }, |
306 | 306 | { |
307 | 307 | "type": "paragraph", |
|
325 | 325 | }, |
326 | 326 | { |
327 | 327 | "type": "test-button", |
328 | | - "text": "Try it >>", |
| 328 | + "text": "Try >>", |
329 | 329 | "code": "name = \"YOUR NAME\"\nprint(\"Welcome,\", name, \"to the world of Python!\")" |
330 | 330 | }, |
331 | 331 | { |
332 | 332 | "type": "subtitle1", |
333 | | - "text": "Conclusion of the topic" |
| 333 | + "text": "Unit Conclusions" |
334 | 334 | }, |
335 | 335 | { |
336 | 336 | "type": "paragraph", |
|
339 | 339 | { |
340 | 340 | "type": "list", |
341 | 341 | "items": [ |
342 | | - "What a program in Python is", |
343 | | - "How <code class=\"language-python\">print()</code> works", |
344 | | - "How to use <code class=\"language-python\">sep</code> and <code class=\"language-python\">end</code>", |
345 | | - "How to control newlines and tabs", |
346 | | - "How to write a minimal valid program" |
| 342 | + "What a program in Python is.", |
| 343 | + "How <code class=\"language-python\">print()</code> works.", |
| 344 | + "How to use <code class=\"language-python\">sep</code> and <code class=\"language-python\">end</code>.", |
| 345 | + "How to control newlines and tabs.", |
| 346 | + "How to write a minimal valid program." |
347 | 347 | ] |
348 | 348 | }, |
349 | 349 | { |
|
0 commit comments