Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chap 6 Challenges 3 and 4 Solutions based on chapter content #34

Open
Captain-Goofy opened this issue Nov 9, 2019 · 0 comments
Open

Comments

@Captain-Goofy
Copy link

Captain-Goofy commented Nov 9, 2019

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)

@Captain-Goofy Captain-Goofy changed the title Solution based on chapter content Chap 6 Challlenges 3 and 4 Solutions based on chapter content Nov 10, 2019
@Captain-Goofy Captain-Goofy changed the title Chap 6 Challlenges 3 and 4 Solutions based on chapter content Chap 6 Challenges 3 and 4 Solutions based on chapter content Nov 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant