Answer to Question #229962 in Python for Assignment

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"
1
Expert's answer
2021-08-26T10:09:10-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS