Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
ndand
· 2y ago · 0 comments
You can capitalize a string in Python using functional style
' '.join(map(str.capitalize, string.split(' ')))
which is similar to the example in Ruby, except the operations are written in reverse order.
Comments
No comments yet.
Better HN