Python - Step across the characters in a string, printing the uppercase version of each as it goes:

Description

Step across the characters in a string, printing the uppercase version of each as it goes:

Demo

for c in 'test': 
     print(c.upper())

Result

Related Topic