
이어서 오늘은 아주 기본적인 내용 '문자열 자료형'에 대해서 공부한다.
문자열 자료형은 어제의 숫자 자료형과 동일하게
Print 함수에 ''(작은 따옴표), ""(큰 따옴표)를 사용하여 문자열 내용을 입력한다.
문자열
#문자열 자료형
print('풍선')
print('Balloon')
print("나비")
print("Butterfly")
print("ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ")
print("ㅋ" * 10)
print("ㅋ" * 99)
print("동해물과 백두산이 마르고 닳도록 하느님이 보우하사 우리나라 만세")
print("동해물과 백두산이 마르고 닳도록 하느님이 보우하사 우리나라 만세" * 2)
print("Until the day when the East Sea's waters and Mt. Baekdu are dry and worn away, God protects and preserves us. Long live our nation!")
print("Until the day when the East Sea's waters and Mt. Baekdu are dry and worn away, God protects and preserves us. Long live our nation!" * 2)
>>
풍선
Balloon
나비
Butterfly
ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ
ㅋㅋㅋㅋㅋㅋㅋㅋㅋ
동해물과 백두산이 마르고 닳도록
하느님이 보우하사 우리나라 만
세
동해물과 백두산이 마르고 닳도록
하느님이 보우하사 우리나라 만
세동해물과 백두산이 마르고 닳도
록 하느님이 보우하사 우리나라
만세
Until the day when the East Sea's waters and Mt. Baekdu are dry and worn away, God protects and preserves us. Long live our
nation!
Until the day when the East Sea's waters and Mt. Baekdu are dry and worn away, God protects and preserves us. Long live our
nation!Until the day when the East Sea's waters and Mt. Baekdu are dry and worn away, God protects and preserves us. Long live our nation!
Print('문자열(한/영)')
print("문자열(한/영)")
큰 따옴표와 작은따옴표, 영문과 한글 상관 없이 문자열 입력 확인
기본적 내용은 반복 입력으로 체화하기 !