Skip to content

Commit d54baae

Browse files
committed
Update expressions-datatypes.ipynb
1 parent 9170a4c commit d54baae

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

expressions-datatypes.ipynb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1862,15 +1862,15 @@
18621862
"output_type": "stream",
18631863
"text": [
18641864
"6 apples\n",
1865-
"7.6은 부동소수점\n",
1866-
"[1, 2, 3]는 리스트\n"
1865+
"3.5는 부동소수점\n",
1866+
"[2, 3, 2, 3]는 리스트\n"
18671867
]
18681868
}
18691869
],
18701870
"source": [
1871-
"print(f'{6} apples')\n",
1872-
"print(f'{7.6}은 부동소수점')\n",
1873-
"print(f'{[1, 2, 3]}는 리스트')"
1871+
"print(f'{2*3} apples')\n",
1872+
"print(f'{7/2}는 부동소수점')\n",
1873+
"print(f'{[2, 3] * 2}는 리스트')"
18741874
]
18751875
},
18761876
{
@@ -1888,22 +1888,22 @@
18881888
},
18891889
{
18901890
"cell_type": "code",
1891-
"execution_count": 3,
1891+
"execution_count": 2,
18921892
"metadata": {},
18931893
"outputs": [
18941894
{
18951895
"name": "stdout",
18961896
"output_type": "stream",
18971897
"text": [
1898-
"나이는 20살, 키는 175.5cm 입니다. 내년에는 21살이 됩니다.\n"
1898+
"나이는 20살, 키는 175.5cm 입니다. 내년에는 21살이 될텐데, 키는 원래 키보다 5% 큰 184.275cm 정도 되길 바랍니다.\n"
18991899
]
19001900
}
19011901
],
19021902
"source": [
19031903
"age = 20\n",
19041904
"height = 175.5\n",
19051905
"\n",
1906-
"print(f'나이는 {age}살, 키는 {height}cm 입니다. 내년에는 {age + 1}살이 됩니다.')"
1906+
"print(f'나이는 {age}살, 키는 {height}cm 입니다. 내년에는 {age + 1}살이 될텐데, 키는 원래 키보다 5% 큰 {height * 1.05}cm 정도 되길 바랍니다.')"
19071907
]
19081908
},
19091909
{
@@ -2519,7 +2519,7 @@
25192519
"name": "python",
25202520
"nbconvert_exporter": "python",
25212521
"pygments_lexer": "ipython3",
2522-
"version": "3.13.12"
2522+
"version": "3.13.5"
25232523
},
25242524
"toc": {
25252525
"base_numbering": 1,

0 commit comments

Comments
 (0)