import sys
input = sys.stdin.readline
numbers = []
for i in range(9):
numbers.append(int(input()))
print(max(numbers))
print(numbers.index(max(numbers))+1)
• max() : 최댓값 구하는 함수이다.
• index() : 리스트에서 특정 값의 인덱스를 반환해준다.
🔎 index( )
• 리스트.index(특정 값) 형태로 사용하며 특정 값의 인덱스를 반환한다.
• 중복된 원소가 있을 경우 가장 작은 인덱스를 반환한다.