Kevin Tiller

Generation

fix invalid codeSun, 23 Apr 2023

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)

Want to kickstart your project?Use the new AI Studio to create your code