코딩테스트

python 문법 (까먹거나 새롭게 알게된 것)

  1. 인덱스 슬라이싱
    • start_index:end_index:step
numbers = [i for i in range(1, 11)] # [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

numbers[3:9:2] #[4, 6, 8]

댓글남기기