Coding Global Background
Coding Global

can someone help me and tell me why my code isn't working as it should?

Archived a year ago
22 messages
3 members
Created a year ago
Updated a year ago
Open in Discord
F
ryn
Script Kiddie!
can someone help me and tell me why my code isn't working as it should? despite coddytech telling me it works perfectly

def change_element(lst, index, new_element):
  lst[index] = new_element
  return lst

x = list(input())
y = int(input())
z = input()
print(change_element(x, y, z))

Replies (21)