Programming/Python
[Python-Basic] List Data Type - 1(Add)
kospi_top10 = ['삼성전자', 'SK하이닉스', '현대차', '한국전력', '아모레퍼시픽', '제일모직', '삼성전자우', '삼성생명', 'NAVER', '현대모비스'] # before adding print(kospi_top10) # add new item in list kospi_top10.append('SK텔레콤') print(kospi_top10) # change list name kospi_top11 = kospi_top10 print(kospi_top11) # insert new item after of specific item kospi_top11.insert(0, "JOHNMARK_AGC") print(kospi_top11) 실행결과 $ py list_add.py ['삼성전자',..