파이썬 백준 15000번
브론즈 4
https://www.acmicpc.net/problem/15000
15000번: CAPS
Earth is under attack! Messages need to be sent to the Earth Defense Force (EDF) that makes clear that the situation is dire. The EDF’s strongest forces consist of mechs (huge bipedal robots) that are piloted by Japanese teenagers. To make sure that the
www.acmicpc.net
문제 보기
분류: 구현, 문자열
문제 풀기
메서드 upper() 을 사용하여 간편하게 모든 소문자를 대문자로 변경할 수 있다.
주어진 입력 문자를 string 으로 저장을 하고 upper() 을 적용하면 모든 알파벳이 대문자로 변환되어 출력된다.
코드 보기
import sys
inputdata = sys.stdin.readline
def fnToUpperCase(text):
upperText = text.upper()
print(upperText)
if __name__ == "__main__":
text = str(inputdata().strip())
fnToUpperCase(text)
'공부하기 > 백준' 카테고리의 다른 글
[Python] 백준 풀기 10867 - 중복 빼고 정렬하기 (0) | 2023.02.25 |
---|---|
[Python] 백준 풀기 16435 - 스네이크버드 (0) | 2023.02.24 |
[Python] 백준 풀기 3059 - 등장하지 않는 문자의 합 (0) | 2023.02.22 |
[Java] 백준 풀기 8545 - Zadanie próbne (0) | 2023.02.21 |
[Python] 백준 풀기 9076 - 점수 집계 (0) | 2023.02.19 |