Create a function that takes a single string as argument and returns a list containing the indices of all capital letters in the string in python program
Answers
Answered by
0
Answer:
sorry I didn't know the answer sorry
Answered by
0
Answer:
a=input()
def s(a):
l=[]
for i in a:
if i.isupper():
l.append(a.index(i))
if len(l)>0:
print(*l,end=' ')
else:
print(-1,end=' ')
s(a)
Explanation:
Similar questions
World Languages,
1 month ago
Geography,
1 month ago
Hindi,
1 month ago
Math,
2 months ago
English,
2 months ago
CBSE BOARD XII,
9 months ago
Political Science,
9 months ago
English,
9 months ago