더북(TheBook)

5. 다음과 같은 실행결과가 나왔을 때 가에 들어갈 코드로 알맞지 않은 것은?

fruit = "apple"
print(    가    )

실행결과 icon_con

apple

① fruit[:]

② fruit[0:]

③ fruit[:5]

④ fruit[:-1]

정답확인