How to replace items of list by indices with 2?
00 python replace item of list by index with two.gh (17.3 KB)
How to replace items of list by indices with 2?
00 python replace item of list by index with two.gh (17.3 KB)
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