Skip to content

Commit bc66090

Browse files
committed
demonstrate that str.strip() doesn't remove charcters from the middle of the string
1 parent a33c109 commit bc66090

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎week2/5_String_Methods.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@
470470
"metadata": {},
471471
"outputs": [],
472472
"source": [
473-
"strange_string = '!@#$%!!!^&This Is Sparta!!!!!!!!!&^%$!!!#@!'\n",
473+
"strange_string = '!@#$%!!!^&This! Is! Sparta!!!!!!!!!&^%$!!!#@!'\n",
474474
"print(strange_string.strip('~!@#$%^&*'))"
475475
]
476476
},

0 commit comments

Comments
 (0)