hazer_hazer

Untitled

Dec 11th, 2019
612
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. text = input().lower()
  2. cc = ""
  3. was_space = true
  4. for i in [ 0 : text.len() ]
  5.     if text[i] >= 'a' and text[i] <= 'z'
  6.         if was_space
  7.             cc += text[i].upper()
  8.         else
  9.             cc += text[i]
  10.         end
  11.         was_space = false
  12.     else
  13.         was_space = true
  14.     end
  15. end
  16. printl(cc)
RAW Paste Data