def conditional_modify(a_list, i, new_value): if i < 0 or i > len(a_list) -1: return a_list # Input handling, do not modify! a_list = input().split(" ") i = int(input()) new_value = input() conditional_modify(a_list, i, new_value) print(a_list)
fix invalid codeSun, 23 Apr 2023