string method. 1~20
ยท
๐ Python
Python String Methods1) capitalize() : ๋ฌธ์์ด์ ์ฒซ ๊ธ์๋ฅผ ๋๋ฌธ์๋ก ๋ณํtext: str = "hello"print(text.capitalize()) # Hello2) casefold() : ๋ฌธ์์ด์ ์๋ฌธ์๋ก ๋ณํtext1: str = 'MARIo'text2: str = 'maRIO'print(text1.casefold()) # marioprint(text2.casefold()) # marioprint(text1.casefold() == text2.casefold()) # True3) center() : ๋ฌธ์์ด์ ๊ฐ์ด๋ฐ ์ ๋ ฌtext: str = "hello"print(text.center(20)) # hello print(text.center(20,..