Skip to content

Instantly share code, notes, and snippets.

@hvnsweeting
Created October 26, 2021 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hvnsweeting/70ad5e81b995cf03849164060fbf9e3e to your computer and use it in GitHub Desktop.
Save hvnsweeting/70ad5e81b995cf03849164060fbf9e3e to your computer and use it in GitHub Desktop.
Hoc PYthon tai https://pymi.vn lop HN HCM 21/10/2021
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"id": "f2a4e4fa",
"metadata": {},
"source": [
"# Lesson 2 - pymi.vn"
]
},
{
"cell_type": "markdown",
"id": "b17e894d",
"metadata": {},
"source": [
"## number (cont)"
]
},
{
"cell_type": "markdown",
"id": "294a9d04",
"metadata": {},
"source": [
"## floor division"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "ee1a5807",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"2.5"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"5 / 2"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "ff7c5ffb",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"2"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"5 // 2"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "982b8a05",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"3"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"10 // 3"
]
},
{
"cell_type": "markdown",
"id": "b304f355",
"metadata": {},
"source": [
"## remainder `%`"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "7cfeac3b",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"3"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"10 % 7 "
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "375b2fe9",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"1"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"5 % 2 "
]
},
{
"cell_type": "markdown",
"id": "0cfaee9b",
"metadata": {},
"source": [
"## hôm nay thứ 3, 1 triệu ngày nữa thứ mấy?"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "50868905",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"1"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"1_000_000 % 7"
]
},
{
"cell_type": "markdown",
"id": "8e360025",
"metadata": {},
"source": [
"=> thứ 4"
]
},
{
"cell_type": "markdown",
"id": "4835e88a",
"metadata": {},
"source": [
"## năm nay là năm 2021 -> \"Tân Sửu\""
]
},
{
"cell_type": "markdown",
"id": "46670ae5",
"metadata": {},
"source": [
"## 2081 ? \"Tân Sửu\""
]
},
{
"cell_type": "markdown",
"id": "62cf301e",
"metadata": {},
"source": [
"## 2033 -> \"Gì Sửu\""
]
},
{
"cell_type": "markdown",
"id": "1a04f2b1",
"metadata": {},
"source": [
"## thiên can - địa chi \n",
"## Địa chi\n",
"- tí, suử, dần, mão, thìn, tỵ, ngọ, mùi, thân, dâu, tuất, hợi"
]
},
{
"cell_type": "markdown",
"id": "b1d03cea",
"metadata": {},
"source": [
"## Thiên can\n",
"- giáp, ất, bính, đinh, mậu, kỷ , canh, tân, nhâm, quý"
]
},
{
"cell_type": "markdown",
"id": "763d5e20",
"metadata": {},
"source": [
"## 1369 là năm gì?"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "b7ec6512",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"652"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"2021 - 1369"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "a12549fd",
"metadata": {},
"outputs": [],
"source": [
"x = 652"
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "6778f330",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"4"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"x % 12"
]
},
{
"cell_type": "code",
"execution_count": 11,
"id": "f4895a34",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"2"
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"x % 10"
]
},
{
"cell_type": "markdown",
"id": "4f958439",
"metadata": {},
"source": [
"## kỷ dậu?"
]
},
{
"cell_type": "markdown",
"id": "228b9464",
"metadata": {},
"source": [
"https://canchi.pymi.vn/"
]
},
{
"cell_type": "markdown",
"id": "c423e2c1",
"metadata": {},
"source": [
"## Tác dụng: giảm kích thước bài tóan có tính chất chu kỳ"
]
},
{
"cell_type": "markdown",
"id": "76918016",
"metadata": {},
"source": []
},
{
"cell_type": "code",
"execution_count": 12,
"id": "e81a4f9b",
"metadata": {},
"outputs": [],
"source": [
"import math"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "f36912b3",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0.8939966636005579"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"math.sin(90)"
]
},
{
"cell_type": "code",
"execution_count": 14,
"id": "e34e800c",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"1.0"
]
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"math.sin(math.pi/2)"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "16a460df",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"6.123233995736766e-17"
]
},
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"math.cos(math.pi/2)"
]
},
{
"cell_type": "code",
"execution_count": 16,
"id": "3ee0ea0b",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"1e+69"
]
},
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"1e69"
]
},
{
"cell_type": "code",
"execution_count": 17,
"id": "859895de",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"1000.0"
]
},
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"1e3"
]
},
{
"cell_type": "code",
"execution_count": 18,
"id": "e670bec9",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"False"
]
},
"execution_count": 18,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"1e69 == 10**69"
]
},
{
"cell_type": "code",
"execution_count": 19,
"id": "cafb801f",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"1000000000000000000000000000000000000000000000000000000000000000000000"
]
},
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"10**69"
]
},
{
"cell_type": "code",
"execution_count": 20,
"id": "b24d1b78",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"1000000000000000072531436381529235126158374409646521955518210155479040"
]
},
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"int(1e69)"
]
},
{
"cell_type": "markdown",
"id": "93edc826",
"metadata": {},
"source": [
"## complex"
]
},
{
"cell_type": "code",
"execution_count": 21,
"id": "f0ea9ea6",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(2+3j)"
]
},
"execution_count": 21,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"2 + 3j"
]
},
{
"cell_type": "code",
"execution_count": 23,
"id": "e1c69513",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"complex"
]
},
"execution_count": 23,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"type(2+3J)"
]
},
{
"cell_type": "code",
"execution_count": 24,
"id": "3474bd88",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(5+5j)"
]
},
"execution_count": 24,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"2 + 3j + 3 + 2J"
]
},
{
"cell_type": "code",
"execution_count": 25,
"id": "be88a0cb",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(5+5j)"
]
},
"execution_count": 25,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"_"
]
},
{
"cell_type": "markdown",
"id": "41f709f9",
"metadata": {},
"source": [
"## hết toán"
]
},
{
"cell_type": "code",
"execution_count": 26,
"id": "b05f586b",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 26,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"3 < 4"
]
},
{
"cell_type": "code",
"execution_count": 27,
"id": "8e76f4a5",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"bool"
]
},
"execution_count": 27,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"type(3<4)"
]
},
{
"cell_type": "markdown",
"id": "343784bb",
"metadata": {},
"source": [
"## boolean /ˈbuːlɪən/"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "e4ea0212",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "4b5b0ec2",
"metadata": {},
"source": [
"## cache /kaʃ/\n",
"## cash /kaʃ/"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "cd2e5812",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "9c2bfdec",
"metadata": {},
"source": [
"## resort rɪˈzɔːt"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "11663f80",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "24915065",
"metadata": {},
"source": [
"## suite /swiːt/ sweet"
]
},
{
"cell_type": "markdown",
"id": "db2e88b5",
"metadata": {},
"source": [
"https://www.lexico.com/definition/sweet?locale=en"
]
},
{
"cell_type": "code",
"execution_count": 28,
"id": "5da6df5f",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 28,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"3 < 4"
]
},
{
"cell_type": "code",
"execution_count": 29,
"id": "74fdca05",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"False"
]
},
"execution_count": 29,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"3 > 4"
]
},
{
"cell_type": "code",
"execution_count": 30,
"id": "74632073",
"metadata": {},
"outputs": [
{
"ename": "NameError",
"evalue": "name 'true' is not defined",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m/tmp/ipykernel_4597/1822790664.py\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mtype\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtrue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;31mNameError\u001b[0m: name 'true' is not defined"
]
}
],
"source": [
"type(true)"
]
},
{
"cell_type": "code",
"execution_count": 31,
"id": "877a188a",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"bool"
]
},
"execution_count": 31,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"type(True)"
]
},
{
"cell_type": "markdown",
"id": "f16d82f7",
"metadata": {},
"source": [
"## 3 operators"
]
},
{
"cell_type": "code",
"execution_count": 32,
"id": "ab22b68c",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 32,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"True"
]
},
{
"cell_type": "markdown",
"id": "8ad08056",
"metadata": {},
"source": [
"## not"
]
},
{
"cell_type": "code",
"execution_count": 33,
"id": "9bce6725",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"False"
]
},
"execution_count": 33,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"not True"
]
},
{
"cell_type": "code",
"execution_count": 34,
"id": "c6cc0f5b",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 34,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"not False"
]
},
{
"cell_type": "code",
"execution_count": 35,
"id": "c21aba13",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 35,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"not True == False"
]
},
{
"cell_type": "code",
"execution_count": 36,
"id": "08812537",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 36,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"not False == True"
]
},
{
"cell_type": "markdown",
"id": "81d58bb5",
"metadata": {},
"source": [
"## Python dev ko bao giờ viết vậy"
]
},
{
"cell_type": "code",
"execution_count": 37,
"id": "b63bb148",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 37,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"not True is False"
]
},
{
"cell_type": "code",
"execution_count": 38,
"id": "57619d61",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 38,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"not False is True"
]
},
{
"cell_type": "markdown",
"id": "c94dd2f7",
"metadata": {},
"source": [
"## and"
]
},
{
"cell_type": "code",
"execution_count": 39,
"id": "5e1700e7",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 39,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"True and True "
]
},
{
"cell_type": "code",
"execution_count": 40,
"id": "cfd2730f",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"False"
]
},
"execution_count": 40,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"True and False"
]
},
{
"cell_type": "code",
"execution_count": 41,
"id": "ead750e4",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"False"
]
},
"execution_count": 41,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"False and True "
]
},
{
"cell_type": "code",
"execution_count": 42,
"id": "7c648416",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"False"
]
},
"execution_count": 42,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"False and False"
]
},
{
"cell_type": "markdown",
"id": "26d805da",
"metadata": {},
"source": [
"## or"
]
},
{
"cell_type": "code",
"execution_count": 47,
"id": "8b24d65f",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 47,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"True or True "
]
},
{
"cell_type": "code",
"execution_count": 44,
"id": "ef6e4617",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 44,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"True or False"
]
},
{
"cell_type": "code",
"execution_count": 45,
"id": "14120634",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 45,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"False or True"
]
},
{
"cell_type": "code",
"execution_count": 46,
"id": "05f365e5",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"False"
]
},
"execution_count": 46,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"False or False"
]
},
{
"cell_type": "markdown",
"id": "7b7d23e6",
"metadata": {},
"source": [
"## test"
]
},
{
"cell_type": "code",
"execution_count": 48,
"id": "036ea2f8",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 48,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"True or 1/0"
]
},
{
"cell_type": "code",
"execution_count": 49,
"id": "065e883e",
"metadata": {},
"outputs": [
{
"ename": "ZeroDivisionError",
"evalue": "division by zero",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mZeroDivisionError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m/tmp/ipykernel_4597/2638778418.py\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;36m1\u001b[0m\u001b[0;34m/\u001b[0m\u001b[0;36m0\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;31mZeroDivisionError\u001b[0m: division by zero"
]
}
],
"source": [
"1/0 or True"
]
},
{
"cell_type": "code",
"execution_count": 50,
"id": "fcb60334",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"False"
]
},
"execution_count": 50,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"False and 1/0"
]
},
{
"cell_type": "code",
"execution_count": 51,
"id": "5d38c78d",
"metadata": {},
"outputs": [
{
"ename": "ZeroDivisionError",
"evalue": "division by zero",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mZeroDivisionError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m/tmp/ipykernel_4597/812870342.py\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;32mFalse\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0;36m1\u001b[0m\u001b[0;34m/\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;31mZeroDivisionError\u001b[0m: division by zero"
]
}
],
"source": [
"False or 1/0"
]
},
{
"cell_type": "code",
"execution_count": 52,
"id": "56179c09",
"metadata": {},
"outputs": [
{
"ename": "ZeroDivisionError",
"evalue": "division by zero",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mZeroDivisionError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m/tmp/ipykernel_4597/3147863620.py\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;32mTrue\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0;36m1\u001b[0m\u001b[0;34m/\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;31mZeroDivisionError\u001b[0m: division by zero"
]
}
],
"source": [
"True and 1/0"
]
},
{
"cell_type": "markdown",
"id": "6debec58",
"metadata": {},
"source": [
"```\n",
"Boolean Operations — and, or, not\n",
"\n",
"These are the Boolean operations, ordered by ascending priority:\n",
"Operation \tResult \tNotes\n",
"x or y \tif x is false, then y, else x \t(1)\n",
"x and y \tif x is false, then x, else y \t(2)\n",
"not x \tif x is false, then True, else False \t(3)\n",
"\n",
"Notes:\n",
"\n",
" This is a short-circuit operator, so it only evaluates the second argument if the first one is false.\n",
" This is a short-circuit operator, so it only evaluates the second argument if the first one is true.\n",
" not has a lower priority than non-Boolean operators, so not a == b is interpreted as not (a == b), and a == not b is a syntax error.\n",
"```\n",
"https://docs.python.org/3/library/stdtypes.html#boolean-operations-and-or-not"
]
},
{
"cell_type": "markdown",
"id": "093aa586",
"metadata": {},
"source": [
"## Python boolean is short-circuit"
]
},
{
"cell_type": "markdown",
"id": "ae00c106",
"metadata": {},
"source": [
"## dừng lại sớm nhất có thể"
]
},
{
"cell_type": "markdown",
"id": "98b18849",
"metadata": {},
"source": [
"https://www.google.com/search?channel=fs&client=ubuntu&q=python+boolean+short+circuit"
]
},
{
"cell_type": "markdown",
"id": "09b6e1f5",
"metadata": {},
"source": [
"## and dừng lại khi gặp False\n",
"## or dừng lại khi gặp True"
]
},
{
"cell_type": "markdown",
"id": "ba70ba5f",
"metadata": {},
"source": [
"## bí mật, không dùng"
]
},
{
"cell_type": "code",
"execution_count": 54,
"id": "553406f0",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"2"
]
},
"execution_count": 54,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"True + True "
]
},
{
"cell_type": "code",
"execution_count": 55,
"id": "77d330d0",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"3"
]
},
"execution_count": 55,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"True + True + True "
]
},
{
"cell_type": "code",
"execution_count": 56,
"id": "306fd7d6",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 56,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"True == 1"
]
},
{
"cell_type": "code",
"execution_count": 57,
"id": "a78fb8bf",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 57,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"False == 0"
]
},
{
"cell_type": "markdown",
"id": "818a716d",
"metadata": {},
"source": [
"## String/text"
]
},
{
"cell_type": "code",
"execution_count": 58,
"id": "7a4d8835",
"metadata": {},
"outputs": [],
"source": [
"s = \"Python is No 1\""
]
},
{
"cell_type": "code",
"execution_count": 60,
"id": "ba0a7a69",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"str"
]
},
"execution_count": 60,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"type(s)"
]
},
{
"cell_type": "markdown",
"id": "28a34956",
"metadata": {},
"source": [
"## `\"` - double quotes\n",
"- hai nhay\n",
"- nhay kep\n",
"- ngoac kep ))\n",
"- ngoac kep\n",
"- ngoac kep\n",
"- ngoac kep"
]
},
{
"cell_type": "markdown",
"id": "bb81a8f7",
"metadata": {},
"source": [
"## `'` - single quote\n",
"- một nháy \n",
"- nháy đơn\n",
"- ngoặc đơn? "
]
},
{
"cell_type": "markdown",
"id": "42e30266",
"metadata": {},
"source": [
"## `'''` - triple quotes"
]
},
{
"cell_type": "code",
"execution_count": 61,
"id": "fa662878",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'String'"
]
},
"execution_count": 61,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"'''String'''"
]
},
{
"cell_type": "code",
"execution_count": 62,
"id": "19f693cb",
"metadata": {},
"outputs": [],
"source": [
"s = 'Python'\n",
"s2 = \"Python\""
]
},
{
"cell_type": "code",
"execution_count": 63,
"id": "e46a403c",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 63,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s == s2"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "70473580",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 64,
"id": "d0ede6ce",
"metadata": {},
"outputs": [
{
"ename": "SyntaxError",
"evalue": "invalid syntax (2643873046.py, line 1)",
"output_type": "error",
"traceback": [
"\u001b[0;36m File \u001b[0;32m\"/tmp/ipykernel_4597/2643873046.py\"\u001b[0;36m, line \u001b[0;32m1\u001b[0m\n\u001b[0;31m 'I'm Hoang'\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid syntax\n"
]
}
],
"source": [
"'I'm Hoang'"
]
},
{
"cell_type": "code",
"execution_count": 65,
"id": "89126e3b",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'I'"
]
},
"execution_count": 65,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"'I'"
]
},
{
"cell_type": "code",
"execution_count": 67,
"id": "545e4c7d",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"I'm Hoang\n"
]
}
],
"source": [
"print(\"I'm Hoang\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "33c8b10b",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 68,
"id": "061f10ab",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello, World!\n"
]
}
],
"source": [
"print(\"Hello, World!\")"
]
},
{
"cell_type": "code",
"execution_count": 69,
"id": "56d23540",
"metadata": {},
"outputs": [
{
"ename": "SyntaxError",
"evalue": "invalid syntax (1506499932.py, line 1)",
"output_type": "error",
"traceback": [
"\u001b[0;36m File \u001b[0;32m\"/tmp/ipykernel_4597/1506499932.py\"\u001b[0;36m, line \u001b[0;32m1\u001b[0m\n\u001b[0;31m \"This is double \" quote\"\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid syntax\n"
]
}
],
"source": [
"\"This is double \" quote\""
]
},
{
"cell_type": "markdown",
"id": "94a03a54",
"metadata": {},
"source": [
"## Escape"
]
},
{
"cell_type": "markdown",
"id": "6ba2f15b",
"metadata": {},
"source": [
"## escape quote"
]
},
{
"cell_type": "code",
"execution_count": 71,
"id": "dd3e0ef7",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"I'm Hoang\n"
]
}
],
"source": [
"s = 'I\\'m Hoang'\n",
"print(s)"
]
},
{
"cell_type": "code",
"execution_count": 72,
"id": "cd115a01",
"metadata": {},
"outputs": [
{
"ename": "SyntaxError",
"evalue": "EOL while scanning string literal (2232671916.py, line 1)",
"output_type": "error",
"traceback": [
"\u001b[0;36m File \u001b[0;32m\"/tmp/ipykernel_4597/2232671916.py\"\u001b[0;36m, line \u001b[0;32m1\u001b[0m\n\u001b[0;31m bai_tho = \"em không là nàng thơ\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m EOL while scanning string literal\n"
]
}
],
"source": [
"bai_tho = \"em không là nàng thơ\n",
"anh cũngkhoong còn là nhạc sỹ mộng mơ\""
]
},
{
"cell_type": "markdown",
"id": "0c25a001",
"metadata": {},
"source": [
"## newline `\\n`"
]
},
{
"cell_type": "code",
"execution_count": 73,
"id": "8a374f0f",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"em không là nàng thơ\n",
"anh cũngkhoong còn là nhạc sỹ mộng mơ\n"
]
}
],
"source": [
"s = \"em không là nàng thơ\\nanh cũngkhoong còn là nhạc sỹ mộng mơ\"\n",
"print(s)"
]
},
{
"cell_type": "code",
"execution_count": 74,
"id": "59037831",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"em không là nàng thơ\n",
"anh cũngkhoong còn là nhạc sỹ mộng mơ\n"
]
}
],
"source": [
"s = \"\"\"em không là nàng thơ\n",
"anh cũngkhoong còn là nhạc sỹ mộng mơ\"\"\"\n",
"print(s)"
]
},
{
"cell_type": "markdown",
"id": "38cbb1a6",
"metadata": {},
"source": [
"## tab `\\t`"
]
},
{
"cell_type": "code",
"execution_count": 76,
"id": "5cda8164",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"a\tb\tc\td\n"
]
}
],
"source": [
"s = 'a\\tb\\tc\\td'\n",
"print(s)"
]
},
{
"cell_type": "markdown",
"id": "dc00ffb0",
"metadata": {},
"source": [
"- int\n",
"- float\n",
"- bool\n",
"- str"
]
},
{
"cell_type": "markdown",
"id": "582edd4a",
"metadata": {},
"source": [
"## list "
]
},
{
"cell_type": "code",
"execution_count": 77,
"id": "0c5002ec",
"metadata": {},
"outputs": [],
"source": [
"names = [\"Trang\", \"Hieu\", \"Hoang\", \"Anh\", \"Dat\", \"Tuan\"]"
]
},
{
"cell_type": "code",
"execution_count": 78,
"id": "ee2e3f2a",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"list"
]
},
"execution_count": 78,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"type(names)"
]
},
{
"cell_type": "code",
"execution_count": 79,
"id": "0486fb7f",
"metadata": {},
"outputs": [],
"source": [
"xs = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]"
]
},
{
"cell_type": "code",
"execution_count": 80,
"id": "66e14038",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"20"
]
},
"execution_count": 80,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len(xs)"
]
},
{
"cell_type": "markdown",
"id": "f9fc48b2",
"metadata": {},
"source": [
"## len (length) - so phan tu "
]
},
{
"cell_type": "markdown",
"id": "a2d390c8",
"metadata": {},
"source": [
"## empty list"
]
},
{
"cell_type": "code",
"execution_count": 81,
"id": "3e2858eb",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0"
]
},
"execution_count": 81,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"elist = []\n",
"len(elist)"
]
},
{
"cell_type": "code",
"execution_count": 82,
"id": "d63a14ee",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0"
]
},
"execution_count": 82,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len([])"
]
},
{
"cell_type": "code",
"execution_count": 83,
"id": "8dc2d30c",
"metadata": {},
"outputs": [],
"source": [
"thap_cam = [\"Thanh\", 23, True, False, 1.5]"
]
},
{
"cell_type": "code",
"execution_count": 84,
"id": "c55fbb6d",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"list"
]
},
"execution_count": 84,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"type(thap_cam)"
]
},
{
"cell_type": "code",
"execution_count": 86,
"id": "3db39f4e",
"metadata": {},
"outputs": [],
"source": [
"deep = [\"thanh\", [1,2,3, [True], 4]]"
]
},
{
"cell_type": "code",
"execution_count": 90,
"id": "ed93785d",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"['thanh', [1, 2, 3, [True], 4]]\n"
]
}
],
"source": [
"print(deep)"
]
},
{
"cell_type": "code",
"execution_count": 91,
"id": "82e970d9",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"2"
]
},
"execution_count": 91,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len(deep)"
]
},
{
"cell_type": "markdown",
"id": "e32dbd19",
"metadata": {},
"source": []
},
{
"cell_type": "code",
"execution_count": 92,
"id": "4df75fd1",
"metadata": {},
"outputs": [],
"source": [
"ns = [2,3,4,5,6,7]"
]
},
{
"cell_type": "code",
"execution_count": 95,
"id": "4f76ed52",
"metadata": {},
"outputs": [],
"source": [
"ns = [1,2.0,2,2,2,2,3,3,3,3,3,3,3,5,5,5,3,32,1,1,3,4,6,12312]"
]
},
{
"cell_type": "code",
"execution_count": 96,
"id": "e62571ad",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"12409.0"
]
},
"execution_count": 96,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"sum(ns)"
]
},
{
"cell_type": "markdown",
"id": "18ff8f15",
"metadata": {},
"source": [
"## tính tổng các số tự nhiên từ 1 đến 99"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "19dae2fd",
"metadata": {},
"outputs": [],
"source": [
"5"
]
},
{
"cell_type": "code",
"execution_count": 99,
"id": "e0a874d1",
"metadata": {},
"outputs": [],
"source": [
"ns = [1,2,3,4,5,6,7,8,9,10,\n",
" 11,12,13,14,15,16,17,18,19,20,\n",
" 21,22,23,24,25,26,27,28,29,30,\n",
" 31,32,33,34,35,36,37,38,39,40,\n",
" 41,42,43,44,45,46,47,48,49,50,\n",
" 51,52,53,54,55,56,57,58,59,60,\n",
" 61,62,63,64,65,66,67,68,69,70,\n",
" 71,72,73,74,75,76,77,78,79,80,\n",
" 81,82,83,84,85,86,87,88,89,90,\n",
" 91,92,93,94,95,96,97,98,99\n",
" ]"
]
},
{
"cell_type": "code",
"execution_count": 100,
"id": "21ead82b",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"4950"
]
},
"execution_count": 100,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"sum(ns)"
]
},
{
"cell_type": "code",
"execution_count": 101,
"id": "a2241dd4",
"metadata": {},
"outputs": [],
"source": [
"xs = list(range(1, 10))"
]
},
{
"cell_type": "code",
"execution_count": 102,
"id": "f82fb966",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[1, 2, 3, 4, 5, 6, 7, 8, 9]"
]
},
"execution_count": 102,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"xs"
]
},
{
"cell_type": "code",
"execution_count": 103,
"id": "d1399457",
"metadata": {},
"outputs": [],
"source": [
"xs = list(range(1, 100))"
]
},
{
"cell_type": "code",
"execution_count": 105,
"id": "25ac2606",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99]\n"
]
}
],
"source": [
"print(xs)"
]
},
{
"cell_type": "code",
"execution_count": 106,
"id": "90913c14",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"4950"
]
},
"execution_count": 106,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"sum(xs)"
]
},
{
"cell_type": "markdown",
"id": "c26b4323",
"metadata": {},
"source": [
"## tính tổng từ 1 đến 1 tỷ (GỒMCẢ 1 tỷ)"
]
},
{
"cell_type": "code",
"execution_count": 107,
"id": "e8fb7cb0",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"500000000500000000"
]
},
"execution_count": 107,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"sum(range(1, 1_000_000_001))"
]
},
{
"cell_type": "code",
"execution_count": 109,
"id": "3b67dd1f",
"metadata": {},
"outputs": [],
"source": [
"names = ['Trang', 'Hieu', 'Hoang', 'Anh', 'Dat', 'Tuan']"
]
},
{
"cell_type": "code",
"execution_count": 110,
"id": "bc9c5765",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['Trang', 'Hieu', 'Hoang', 'Anh', 'Dat', 'Tuan']"
]
},
"execution_count": 110,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"names"
]
},
{
"cell_type": "markdown",
"id": "ed98b59a",
"metadata": {},
"source": [
"## access list element: indexing"
]
},
{
"cell_type": "code",
"execution_count": 112,
"id": "6334875a",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'Trang'"
]
},
"execution_count": 112,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"names[0]"
]
},
{
"cell_type": "code",
"execution_count": 113,
"id": "9a7241dc",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'Hieu'"
]
},
"execution_count": 113,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"names[1]"
]
},
{
"cell_type": "code",
"execution_count": 114,
"id": "a30aa334",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'Tuan'"
]
},
"execution_count": 114,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"names[5]"
]
},
{
"cell_type": "code",
"execution_count": 120,
"id": "81e19544",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'Tuan'"
]
},
"execution_count": 120,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"names[len(names) - 1]"
]
},
{
"cell_type": "code",
"execution_count": 121,
"id": "258a2770",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'Tuan'"
]
},
"execution_count": 121,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"names[-1]"
]
},
{
"cell_type": "code",
"execution_count": 115,
"id": "c7893770",
"metadata": {},
"outputs": [
{
"ename": "IndexError",
"evalue": "list index out of range",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mIndexError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m/tmp/ipykernel_4597/1739995716.py\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mnames\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m6\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;31mIndexError\u001b[0m: list index out of range"
]
}
],
"source": [
"names[6]"
]
},
{
"cell_type": "markdown",
"id": "943d8751",
"metadata": {},
"source": [
"## các số 0 1 2 3 4 5 gọi là index"
]
},
{
"cell_type": "markdown",
"id": "8405fbc1",
"metadata": {},
"source": []
},
{
"cell_type": "markdown",
"id": "a91b6754",
"metadata": {},
"source": [
"## index bắt đầu từ 0"
]
},
{
"cell_type": "code",
"execution_count": 116,
"id": "e0d428d3",
"metadata": {},
"outputs": [],
"source": [
"top3 = [names[0], names[1], names[2]]"
]
},
{
"cell_type": "code",
"execution_count": 117,
"id": "5164ab82",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['Trang', 'Hieu', 'Hoang']"
]
},
"execution_count": 117,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"top3"
]
},
{
"cell_type": "markdown",
"id": "7664852a",
"metadata": {},
"source": [
"## slicing - lấy 1 tậpcon của list"
]
},
{
"cell_type": "code",
"execution_count": 118,
"id": "dfd9f43b",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['Trang', 'Hieu', 'Hoang']"
]
},
"execution_count": 118,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"names[0:3]"
]
},
{
"cell_type": "code",
"execution_count": 123,
"id": "88aae8ba",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['Trang', 'Hieu', 'Hoang']"
]
},
"execution_count": 123,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"names[:3]"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "e7c31c5a",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 119,
"id": "ffcfeb2f",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['Anh', 'Dat', 'Tuan']"
]
},
"execution_count": 119,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"names[len(names)-3:len(names)]"
]
},
{
"cell_type": "code",
"execution_count": 122,
"id": "093a5dd9",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['Anh', 'Dat', 'Tuan']"
]
},
"execution_count": 122,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"names[-3:]"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "dc30e453",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"id": "073862e3",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "821e1bc1",
"metadata": {},
"source": [
"## index & slice áp dụng cho string"
]
},
{
"cell_type": "code",
"execution_count": 124,
"id": "bca8a95e",
"metadata": {},
"outputs": [],
"source": [
"s = 'python'"
]
},
{
"cell_type": "code",
"execution_count": 126,
"id": "c9c6a8a6",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'pyt'"
]
},
"execution_count": 126,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s[:3]"
]
},
{
"cell_type": "code",
"execution_count": 127,
"id": "dd21177d",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'hon'"
]
},
"execution_count": 127,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s[-3:]"
]
},
{
"cell_type": "code",
"execution_count": 128,
"id": "69cb26ba",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'n'"
]
},
"execution_count": 128,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"s[-1]"
]
},
{
"cell_type": "markdown",
"id": "6878ba80",
"metadata": {},
"source": [
"https://docs.python.org/3/tutorial/introduction.html#lists"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "13fdaecb",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment