Feb-19-2018, 11:04 PM
# [ ] split the sentence, code_tip, into a words list
# [ ] print the joined words in the list with no spaces in-between
# [ ] Bonus: capitalize each word in the list before .join()
code_tip ="Read code aloud or explain the code step by step to a peer"
my code:
# [ ] print the joined words in the list with no spaces in-between
# [ ] Bonus: capitalize each word in the list before .join()
code_tip ="Read code aloud or explain the code step by step to a peer"
my code:
code_tip = "Work hard and believe in yourself." wl = code_tip.split() print(''.join(wl))Don't know how to capitalize each word in the list before .join(). I tried with .str() but it gives error: AttributeError: 'list' object has no attribute 'str'