Advertisement
Guest User

Untitled

a guest
Aug 16th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. napis = str(input())
  2. wynik = ""
  3. for i in range(0,len(napis),1):
  4.     if napis[i] != " ":
  5.         if napis[i-1] == " ":
  6.             if napis[i].isupper():
  7.                 wynik += napis[i]
  8.             else:
  9.                 wynik += napis[i].capitalize()
  10.         else:
  11.             wynik += napis[i]
  12. print(wynik)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement