We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c52866 commit 4513ff6Copy full SHA for 4513ff6
1 file changed
02-array-seq/array-seq.ipynb
@@ -335,7 +335,27 @@
335
},
336
{
337
"cell_type": "code",
338
- "execution_count": 12,
+ "execution_count": 21,
339
+ "metadata": {},
340
+ "outputs": [
341
+ {
342
+ "data": {
343
+ "text/plain": [
344
+ "[36, 162, 163, 165, 8364, 164]"
345
+ ]
346
+ },
347
348
349
+ "output_type": "execute_result"
350
+ }
351
+ ],
352
+ "source": [
353
+ "list(ord(symbol) for symbol in symbols)"
354
355
356
357
+ "cell_type": "code",
358
+ "execution_count": 22,
359
"metadata": {},
360
"outputs": [
361
@@ -344,7 +364,7 @@
364
"array('I', [36, 162, 163, 165, 8364, 164])"
365
]
366
367
368
369
"output_type": "execute_result"
370
}
@@ -364,7 +384,7 @@
384
385
386
- "execution_count": 13,
387
+ "execution_count": 27,
388
389
390
@@ -384,7 +404,9 @@
404
"colors = ['black', 'white']\n",
405
"sizes = ['S', 'M', 'L']\n",
406
"\n",
- "for tshirt in ('%s %s' % (c, s) for c in colors for s in sizes):\n",
407
+ "# for tshirt in ('%s %s' % (c, s) for c in colors for s in sizes):\n",
408
+ "# print(tshirt)\n",
409
+ "for tshirt in (f'{c} {s}' for c in colors for s in sizes):\n",
410
" print(tshirt)"
411
412
0 commit comments