Please do not post your code on the forum.
Do you have a question?
Note, do not use a Lambda function.
Your line of code is using “X” too many times.
You’re just trying to slice the “X” variable.
When you added (X) at the end, the interpreter thinks you’re trying to pass the X variable to a function named X[…], which doesn’t exist.
yeahh I’ve seen my mistake. Thanks once again