Python Program to Find Capital Letters in a string || Solving Python Challenges || Challenge 1

1 year ago
3

#python
#programming
#coding
#tech
#development
#challenge
#learning
#computation
#algorithms

CHALLENGE:

Write a function named capital_indexes. The function takes a single parameter, which is a string. Your function should return a list of all the indexes in the string that have capital letters.

For example, calling capital_indexes("HeLlO") should return the list [0, 2, 4].

Loading comments...