[제주코딩베이스캠프] 눈떠보니 코딩테스트 전날 | Python 30분 요약강좌 - 1부
# type, dir, upper, lower, strip, lstrip, rstrip, split, join, format s='hello world' print(type(s)) print(dir(s)) #upper,lower print(s.upper()) # 대문자 print(s.lower()) # 소문자 s.count('l') # s에 l의 개수 출력 #strip, lstrip, rstrip ss=' hello world ' print(ss.strip()) #양쪽 공 공백 삭제 print(ss.lstrip()) #왼쪽 공백 삭제 print(ss.rstrip()) #오른쪽 공백 삭제 #split, join new_ss=ss.split('') #공백을 기준으로 단어를 나눠서 리스트 형태로 반환해준다. ..