Skip to content

Commit ad38cc0

Browse files
committed
cadenas f
1 parent a1c1167 commit ad38cc0

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

notebooks/beginner/notebooks/strings.ipynb

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,32 @@
148148
"print('My name is {first} {family}, you can call me {first}.'.format(first='John', family='Doe'))"
149149
]
150150
},
151+
{
152+
"cell_type": "markdown",
153+
"metadata": {},
154+
"source": [
155+
"## cadenas `f`"
156+
]
157+
},
158+
{
159+
"cell_type": "code",
160+
"execution_count": 1,
161+
"metadata": {},
162+
"outputs": [
163+
{
164+
"name": "stdout",
165+
"output_type": "stream",
166+
"text": [
167+
"My name is John Doe, you can call me John.\n"
168+
]
169+
}
170+
],
171+
"source": [
172+
"first='John'\n",
173+
"family='Doe'\n",
174+
"print(f'My name is {first} {family}, you can call me {first}.')"
175+
]
176+
},
151177
{
152178
"cell_type": "markdown",
153179
"metadata": {},
@@ -364,7 +390,7 @@
364390
],
365391
"metadata": {
366392
"kernelspec": {
367-
"display_name": "Python 3",
393+
"display_name": "Python 3.6.3 ('env': venv)",
368394
"language": "python",
369395
"name": "python3"
370396
},
@@ -378,7 +404,12 @@
378404
"name": "python",
379405
"nbconvert_exporter": "python",
380406
"pygments_lexer": "ipython3",
381-
"version": "3.5.4"
407+
"version": "3.6.3"
408+
},
409+
"vscode": {
410+
"interpreter": {
411+
"hash": "09f4b017238cdde0936a5d5d3a15d51a0d7d5a3084842dec1f9f43494c6ece6d"
412+
}
382413
}
383414
},
384415
"nbformat": 4,

0 commit comments

Comments
 (0)