✅ 문장과 위치의 입력은 input() 사용
📄 연습 문제
input_sentence = str(input('enter sentence >>'))
word_list = input_sentence.split()
word_index = int(input('enter position >>'))
print(f'문장의 {word_index}번째 단어는 {word_list[word_index]}')
📝 실행 예시
enter sentence >> Python is a very easy language.
enter position >> 4
문장의 4번째 단어는 very