Skip to content

Commit ebff168

Browse files
authored
Merge pull request #18 from t-strings/fix-greeting
Update greeting example to use t-strings for dynamic greeting
2 parents 3ff694c + 7c3e393 commit ebff168

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

content/greeting.ipynb

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
{
22
"cells": [
33
{
4+
"metadata": {},
45
"cell_type": "code",
5-
"execution_count": null,
6-
"id": "initial_id",
7-
"metadata": {
8-
"collapsed": true
9-
},
106
"outputs": [],
7+
"execution_count": null,
118
"source": [
129
"name = \"World\"\n",
13-
"greeting = f\"Hello {name}\"\n",
10+
"greeting = t\"Hello {name}\"\n",
1411
"list(greeting)"
15-
]
12+
],
13+
"id": "25d86ff5a0cb2c76"
1614
}
1715
],
1816
"metadata": {

greeting.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"outputs": [],
1111
"source": [
1212
"name = \"World\"\n",
13-
"greeting = f\"Hello {name}\"\n",
13+
"greeting = t\"Hello {name}\"\n",
1414
"list(greeting)"
1515
]
1616
}

0 commit comments

Comments
 (0)