Remove .md and image files and move python files into main chapter folders
This commit is contained in:
parent
5978779a9a
commit
67806dab6a
159 changed files with 0 additions and 4562 deletions
|
|
@ -1,16 +0,0 @@
|
|||
# Runestone.Academy thinkcspy course
|
||||
# Chapter 10
|
||||
# Problem 14
|
||||
|
||||
def replace(s, old, new):
|
||||
# your code here
|
||||
newStr = s.split(old)
|
||||
newStr = new.join(newStr)
|
||||
|
||||
return newStr
|
||||
|
||||
|
||||
s = 'I love spom! Spom is my favorite food. Spom, spom, spom, yum!'
|
||||
print(replace('Mississippi', 'i', 'I'))
|
||||
print(replace(s, 'om', 'am'))
|
||||
print(replace(s, 'o', 'a'))
|
||||
Loading…
Reference in a new issue