Advertisement
hazer_hazer

Untitled

Dec 11th, 2019
3,466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Falcon 0.31 KB | None | 0 0
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement