upper() -> 모두 대문자로
lower() -> 모두 소문자로
title() -> 각 어절의 첫 글자만 대문자로
first_name = 'cyber'
last_name = 'man'
full_name = first_name+' '+last_name
print(full_name)
print(full_name.upper())
print(full_name.lower())
print(full_name.title())
결과
cyber man
CYBER MAN
cyber man
Cyber Man
'Python Basic' 카테고리의 다른 글
List(리스트) 합계, 평균, 원소 개수 sum(), len() - Python(파이썬) 함수 (0) | 2020.11.05 |
---|---|
List(리스트) 정렬 sorted(), sort() 차이 - Python(파이썬) 함수 (0) | 2020.11.05 |
날짜 표시하기 datetime - Python(파이썬) 함수 (0) | 2020.10.27 |
무작위 숫자 다루기 random - Python(파이썬) 함수 (0) | 2020.10.27 |
input(), int(), split() - Python(파이썬) 함수 (0) | 2020.10.27 |