top | item 40766993

(no title)

ndand | 1 year ago

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.

discuss

order

No comments yet.