Getting same number in both

why i am getting this error?

If you aren’t using any global variables in the function, please click my name and message your notebook as an attachment.

You are using the global variable train_sentences inside the function seq_and_pad. Please fix it.

so what should i write there i didnt understand

Make use of function arguments when possible instead of relying on global state. Please read the function signature and instructions carefully.

if i changed train_sentences to val_sentences i get 455 in both

got ittttttttt i have done the changes that you had tell me.