Advertisement
Spocoman

02. Find The Capitals

Jan 15th, 2022
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. word = input()
  2. output = []
  3.  
  4. for i in range(len(word)):
  5.     if 'A' <= word[i] <= 'Z':
  6.         output.append(i)
  7.  
  8. print(output)
  9.  
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement