Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
wordsentencething
#python 3.5.2 #Miles Carr #More word change things #4/23/18 #This will change the sentence sentence1 = "The cat runs down the street to see the other cat on the street." sentence2 = "How much wood could a woodchuck chuck if a woodchuck could chuck wood" dogsentence = sentence1.replace("cat","dog") print (dogsentence) slothsentence = sentence2.replace("woodchuck","sloth") print (slothsentence) findwoodchuck = sentence2.count("o") print (findwoodchuck)
run
|
edit
|
history
|
help
0
ort
library
PyTypeClass
EJ2_PYTHON_207266167
What regex will match these lines?
self
List problem - add items
Game3
0-1 Knapsack
teste