Skip to content
Advertisement

how to remove the above elements from list from matrix by python [closed]

JavaScript

how to remove the above elements from listA from matrixA

JavaScript

Desired output:

JavaScript

sorry for my bad language

Advertisement

Answer

You can get the index of listA within matrixA and then slice with it:

JavaScript

to get

JavaScript

in case listA doesn’t exist, it gives an error so we try:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement