index( ) 함수

Jeonghwan Yoon·2025년 4월 1일

값의 인덱스 값 찾기

a=[1,2,3,4,5]
#a 리스트에서 4의 위치(인덱스 값)을 찾는 코드
a.index(4) # 3
profile
안녕하세요.

0개의 댓글