Error List indices must be intergers abut it works as long as i dont use input to get the argument

I have tried: def funct(arg, list): Diferent_list=[] for i in arg: Diferent_list=Diferent_list+([list[1:][i][0:6]]) why does this works ? funct((1,2,3),list) but if i say: arg= input((1,2,3)) funct(arg,list) (inside input() i put what i put to test the prompt it gives TypeError: list indices must be integers or slices, not str thats why i need it to be…

Details

adding a script with type=”module” to woocommerce admin area

I’m trying to connect a my brother QL-800 label printer to a woocommerce webshop admin page open order, click address, print it. brother provides a javascript library (b-pac: https://www.brother.co.jp/eng/dev/bpac/sample/index.aspx ) for that, which works in the sample page, but now i want to add it to the woocommerce page. it is a minified .js with…

Details