Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text = input().lower()
- cc = ""
- was_space = true
- for i in [ 0 : text.len() ]
- if text[i] >= 'a' and text[i] <= 'z'
- if was_space
- cc += text[i].upper()
- else
- cc += text[i]
- end
- was_space = false
- else
- was_space = true
- end
- end
- printl(cc)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement