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
prime factorizer
jhjhh
func1
StAr
Lesson8
If else if in 2 ways
Lab_III_3_01_12_2020
события
X
First python practice