Question #229962

Write a code to iterate through your name by taking input and print each letter in uppercase using loop. This should work if every letter of your name is in lowercase

Sample Input: sakib

Sample Output: S A K I B

Hint: You can convert a letter to uppercase using the function upper(). If your character, c = "j", use c.upper() to convert it to "J"

Expert's answer

name = input()
for ch in name:
    print(ch.upper(), end=' ')
print()

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS