Advertisement
Josif_tepe

Untitled

Oct 19th, 2024
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. import math
  2.  
  3. def main():
  4.     s = input("Vnesi string: ")
  5.     for i in range(0, len(s)):
  6.         if s[i].isupper():
  7.             for j in range(i + 1, len(s)):
  8.                 if s[j].isupper():
  9.                     break
  10.                 print(s[j], end="")
  11.             print()
  12.  
  13.  
  14.  
  15. if __name__ == "__main__":
  16.     main()
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement