Open Captain-Goofy opened 4 years ago
Challenge 3, based on chapter 6 content is as follows:
st = "aldous Huxley was born in 1894." firstLetter = st[0:1].upper() theRest = st[1:] st = firstLetter + theRest print(st)
Challenge 4
Two methods, not one, one nested in the other.
st = ("Where now? Who now? When now?".replace("? ", "?@")).split("@") print (st)
Challenge 3, based on chapter 6 content is as follows:
st = "aldous Huxley was born in 1894." firstLetter = st[0:1].upper() theRest = st[1:] st = firstLetter + theRest print(st)
Challenge 4
Two methods, not one, one nested in the other.
st = ("Where now? Who now? When now?".replace("? ", "?@")).split("@") print (st)