How to replace items of list by indices with 2?
Runtime error (TypeErrorException): expected index value, got str Traceback: line 20, in script
This is everything you need to know: Python is reading your input list_C as text (str/string) not a list with numbers. Changing your input to a list of numbers is the easiest way to go:
There’s probably a way to change your input into a list of numbers with text operations…
Thank you Touhidi for your response