Computer Science, asked by rizwanashaik1101, 2 months ago

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 rishirajrai6
0

Answer:

sorry I didn't know the answer sorry

Answered by sujanmidatani7
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