A generator function gives the capital letters of a text, as small letters.
def capitals(text):
for ch in text:
if ch.isupper():
yield ch.lower()
g = capitals("PyCharm IDE")
first = next(g)
rest = list(g)
print(first, rest, list(g))
What does the program print?