How do I turn the number strings into integers? I need the numbers made by this code to be integers, not strings.
def capital_indexes(big):
bog = "["
bug = 0
for letter in big:
if letter in "ABCDEFGHIJKLMNOPQRSTUVWXYZ":
bog = bog + str(bug) + ", "
bug = bug + 1
else:
bug = bug + 1
bog = bog[:-2]
bog = bog + "]"
return bog