Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
StringManipulation
#Kelsey Alfaro #StringManipulation #4/23/18 #This file replaces words and counts letters. 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?" dogSentence1 = sentence1.replace('cat','dog') slothSentence2 = sentence2.replace('woodchuck','sloth') findWoodchuck = sentence2.count('o') print(dogSentence1) print(slothSentence2) print(findWoodchuck)
run
|
edit
|
history
|
help
0
square cube
EquivalentRandomDigits
Christmas tree
even odd
Insert a sequence of same numbers, unpacking
mul table
PyRegSplit
Distance between latititude and longitude
PyGen
Emails_Python