프로그래밍/python

python list의 맨 앞에 값 추가

이휘재123 2023. 2. 6. 19:29
반응형
list = [2, 9, 3]
list.insert(0, 'a')
print(list)

# ['a', 2, 9, 3]
반응형