list = [1,2,3,4]
list.insert(0, 'hi') #๋งจ ์ฒ์์ ์ถ๊ฐ
list.append("bye") #๋งจ ๋ง์ง๋ง์ ์ถ๊ฐ
['hi',1,2,3,4,'bye']
'Programming > Python' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Python] Cannot perform โrand_โ with a dtyped [int64] array and scalar of type [bool] (0) | 2022.08.05 |
---|---|
Python ๋์ ๋๋ฆฌ : ๊ฐ์ฅ ํฐ value์ ๊ฐ์ง key ์ถ๋ ฅ (0) | 2022.02.09 |
Python map ํจ์ ์ฌ์ฉ (0) | 2021.06.22 |
Python sort, sorted ์ฐจ์ด (0) | 2021.06.22 |
Python ๋ฆฌ์คํธ๋ฅผ ๋ฌธ์์ด๋ก ๋ง๋ค๊ธฐ (0) | 2021.06.22 |