Programming/Python & Data Structures
[Baekjoon/Python3] 4458번 첫 글자를 대문자로
HooNeee
2020. 12. 4. 17:29
[Baekjoon/Python3] 4458번 첫 글자를 대문자로
4458번: 첫 글자를 대문자로
첫째 줄에 줄의 수 N이 주어진다. 다음 N개의 줄에는 문장이 주어진다. 각 문장에 들어있는 글자의 수는 30을 넘지 않는다. 모든 줄의 첫 번째 글자는 알파벳이다.
www.acmicpc.net
t = int(input()) # //upper// title : front of words, capitalize : front of one word.
for i in range(t):
string = input()
string = string[0].upper() + string[1:]
print(string)