Issue in DeepLearning Specialization course 5 Assignment 2

I am stuck at DeepLearning Specialization course 5 Assignment 2. I read many time implementation guide of model method and implement it accordingly but could not understand where I did mistake please help me find this.

this is what I am getting

in
** 1 parameters, last_name = model(data.split(“\n”), ix_to_char, char_to_ix, 22001, verbose = True)**
** 2 **
----> 3 assert last_name == ‘Trodonosaurus\n’, “Wrong expected output”
** 4 print(“\033[92mAll tests passed!”)**

AssertionError: Wrong expected output

I found issue issue is in X assignment

corrected:
X = moderator edit: code removed

the things I was doing:
X = moderator edit: code removed

I’m glad you solved the problems.

Note that you should not post your code on the forum. That’s not allowed by the Code of Conduct. I will edit your thread to remove the code.

thank you for guiding me I will keep in mind next time.