Dcoder icon

Text Editor @ Dcoder

By Lochard | As a newbie programmer | 13 Apr 2023


Problem: John has created a text editor, which has lots of features but he forgot to add the conversion of Lowercase alphabet to an Uppercase Alphabet. He asks you for help to complete this task for him.

Input: The first line of input consists of single integer T denoting the number of test cases.

Then in the following T lines, each line has a String s of lowercase alphabet.

Output: For each test case print the uppercase of given string.

 

Constraints: 1<=T<=100.

1<=String Length<=10^2.

Sample Input: 2

dcoder

john

Sample Output: 

DCODER

JOHN

for i in range(int(input())):
  print(input().upper())

How do you rate this article?

1


Lochard
Lochard

20240228 Arrived in the UK for about 2 week. All my fears persist. Some are even getting worse. https://github.com/locharp/asylum_diary/


As a newbie programmer
As a newbie programmer

Sharing entry level codes. My snippets on GitHub https://github.com/locharp/code-snippets

Publish0x

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.