Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- word = input()
- output = []
- for i in range(len(word)):
- if 'A' <= word[i] <= 'Z':
- output.append(i)
- print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement