level of challenge = 2/10
Capital indexes
Write a function named capital_indexes.
The function takes a single parameter, wh...
For further actions, you may consider blocking this person and/or reporting abuse
Why is this not a solution?
def capital_indexes(word):
list = []
p = 0
for i in str(word):
if i.isupper():
list.append(p)
p = p + 1
capital_indexes("HeLlO")
This does everything it should? but i'm confused?
You can import string
String.ascii_uppercae