Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b06a2c9

Browse filesBrowse 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
Copy full SHA for b06a2c9

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎notebooks/beginner/strings.ipynb‎

Copy file name to clipboardExpand all lines: notebooks/beginner/strings.ipynb
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.