Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a6356ba

Browse files
minor changes4
1 parent 75edea9 commit a6356ba

File tree

3 files changed

+42
-24
lines changed

3 files changed

+42
-24
lines changed

‎1-getting-started.ipynb‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@
197197
]
198198
},
199199
{
200-
"attachments": {},
201200
"cell_type": "markdown",
202201
"metadata": {
203202
"slideshow": {
@@ -263,7 +262,7 @@
263262
"name": "python",
264263
"nbconvert_exporter": "python",
265264
"pygments_lexer": "ipython3",
266-
"version": "3.6.5"
265+
"version": "3.7.0"
267266
},
268267
"livereveal": {
269268
"scroll": true,

‎2-basics.ipynb‎

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@
599599
"print('n =', n)\n",
600600
"\n",
601601
"print('\\nSwapping m and n')\n",
602-
"m, n = n, m\n",
602+
"m, n = n, m # m, n = 40, 20\n",
603603
"\n",
604604
"print('m =', m)\n",
605605
"print('n =', n)"
@@ -826,7 +826,7 @@
826826
},
827827
{
828828
"cell_type": "code",
829-
"execution_count": 59,
829+
"execution_count": 2,
830830
"metadata": {
831831
"slideshow": {
832832
"slide_type": "subslide"
@@ -853,7 +853,7 @@
853853
},
854854
{
855855
"cell_type": "code",
856-
"execution_count": 73,
856+
"execution_count": 13,
857857
"metadata": {
858858
"scrolled": true,
859859
"slideshow": {
@@ -865,18 +865,24 @@
865865
"name": "stdout",
866866
"output_type": "stream",
867867
"text": [
868-
"False None True and as \n",
869-
"assert async await break class \n",
870-
"continue def del elif else \n",
871-
"except finally for from global \n",
872-
"if import in is lambda \n",
873-
"nonlocal not or pass raise \n",
874-
"return try while with yield \n"
868+
"and as assert async await \n",
869+
"break class continue def del \n",
870+
"elif else except False finally \n",
871+
"for from global if import \n",
872+
"in is lambda None nonlocal \n",
873+
"not or pass raise return \n",
874+
"True try while with yield \n"
875875
]
876876
}
877877
],
878878
"source": [
879-
"keywords = '\\n'.join(['{:<10} {:<10} {:<10} {:<10} {:<10}'.format(*kwlist[i:i+5]) for i in range(0, len(kwlist), 5)])\n",
879+
"kwlist_sorted = sorted(kwlist, key=lambda s: s.lower())\n",
880+
"keywords = '\\n'.join(\n",
881+
" [\n",
882+
" '{:<10} {:<10} {:<10} {:<10} {:<10}'.format(*kwlist_sorted[i:i+5])\n",
883+
" for i in range(0, len(kwlist_sorted), 5)\n",
884+
" ]\n",
885+
")\n",
880886
"print(keywords)"
881887
]
882888
},
@@ -906,7 +912,7 @@
906912
},
907913
{
908914
"cell_type": "code",
909-
"execution_count": 12,
915+
"execution_count": 14,
910916
"metadata": {
911917
"slideshow": {
912918
"slide_type": "subslide"
@@ -917,7 +923,7 @@
917923
"name": "stdout",
918924
"output_type": "stream",
919925
"text": [
920-
"Enter a value : this is a value\n"
926+
"Enter a value : it can be anything\n"
921927
]
922928
}
923929
],
@@ -927,7 +933,7 @@
927933
},
928934
{
929935
"cell_type": "code",
930-
"execution_count": 13,
936+
"execution_count": 15,
931937
"metadata": {
932938
"slideshow": {
933939
"slide_type": "fragment"
@@ -937,10 +943,10 @@
937943
{
938944
"data": {
939945
"text/plain": [
940-
"'this is a value'"
946+
"'it can be anything'"
941947
]
942948
},
943-
"execution_count": 13,
949+
"execution_count": 15,
944950
"metadata": {},
945951
"output_type": "execute_result"
946952
}
@@ -951,7 +957,7 @@
951957
},
952958
{
953959
"cell_type": "code",
954-
"execution_count": 16,
960+
"execution_count": 19,
955961
"metadata": {
956962
"slideshow": {
957963
"slide_type": "subslide"
@@ -962,8 +968,8 @@
962968
"name": "stdout",
963969
"output_type": "stream",
964970
"text": [
965-
"Enter a number : 123\n",
966-
"Enter another number : 7\n"
971+
"Enter a number : 456\n",
972+
"Enter another number : 415\n"
967973
]
968974
}
969975
],
@@ -985,7 +991,7 @@
985991
{
986992
"data": {
987993
"text/plain": [
988-
"130"
994+
"9251"
989995
]
990996
},
991997
"execution_count": 17,
@@ -1196,7 +1202,7 @@
11961202
"name": "python",
11971203
"nbconvert_exporter": "python",
11981204
"pygments_lexer": "ipython3",
1199-
"version": "3.6.5"
1205+
"version": "3.7.0"
12001206
},
12011207
"livereveal": {
12021208
"scroll": true,

‎3-operators.ipynb‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
"| <font size=5>-=</font> | <font size=5>Shorthand assignment</font> |\n",
244244
"| <font size=5>*=</font> | <font size=5>Shorthand assignment</font> |\n",
245245
"| <font size=5>/=</font> | <font size=5>Shorthand assignment</font> |\n",
246-
"etc."
246+
"<font size=5>etc.</font>"
247247
]
248248
},
249249
{
@@ -376,6 +376,19 @@
376376
"livereveal": {
377377
"scroll": true,
378378
"theme": "sky"
379+
},
380+
"toc": {
381+
"base_numbering": 1,
382+
"nav_menu": {},
383+
"number_sections": true,
384+
"sideBar": true,
385+
"skip_h1_title": false,
386+
"title_cell": "Table of Contents",
387+
"title_sidebar": "Contents",
388+
"toc_cell": false,
389+
"toc_position": {},
390+
"toc_section_display": true,
391+
"toc_window_display": false
379392
}
380393
},
381394
"nbformat": 4,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /