Problem with seq_and_pad function

Getting this error:
NameError: name ‘padded_sequences’ is not defined

This error means that the variable padded_sequences is used before initializing it.
Initialize it using the sequences variable you created in the previous step.