Skip to content

Commit b06a2c9

Browse files
Assigning to my_string variable
To print the expected output variable needs to be assigned value of replaced sub string.
1 parent 7287b5e commit b06a2c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebooks/beginner/strings.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"metadata": {},
9393
"outputs": [],
9494
"source": [
95-
"my_string.replace('a', '?')\n",
95+
"my_string = my_string.replace('a', '?')\n",
9696
"print(my_string)"
9797
]
9898
},

0 commit comments

Comments
 (0)