C5W1A2 Exercise 4 model: wrong result

Hi,
After running model function, it shows the result below at the beginning and end:
I have checked my code but still cannot figure out. Can the result gives some clues what’s wrong on my code? Eg, “2” is shown before each word but it should not be shown actually?
Thanks.

j = 0 idx = 0
single_example = turiasaurus
single_example_chars [‘t’, ‘u’, ‘r’, ‘i’, ‘a’, ‘s’, ‘a’, ‘u’, ‘r’, ‘u’, ‘s’]
single_example_ix [20, 21, 18, 9, 1, 19, 1, 21, 18, 21, 19]
X = [None, 20, 21, 18, 9, 1, 19, 1, 21, 18, 21, 19]
Y = [None, 20, 21, 18, 9, 1, 19, 1, 21, 18, 21, 19, 0]

Iteration: 0, Loss: 23.087343

2
Nkzxwtdmfqoeyhsqwasjkjvu
2
Kneb
2
Kzxwtdmfqoeyhsqwasjkjvu
2
Neb
2
Zxwtdmfqoeyhsqwasjkjvu
2
Eb
2
Xwtdmfqoeyhsqwasjkjvu

j = 1535 idx = 1535
j = 1536 idx = 0
Iteration: 2000, Loss: 37.975609


Iteration: 22000, Loss: 40.261401

2
Olvtsrdneooeuerosariiisranskyieaidetcefaneaeodtqer
2
Loeaaersecanslseemuoecyceosbatsoeoeeootnheooneoeso
2
Lvtsrdneooeuerosariiisranskyieaidetcefaneaeodtqero
2
Oeaaersecanslseemuoecyceosbatsoeoeeootnheooneoeson
2
Ytsrdneooeuerosariiisranskyieaidetcefaneaeodtqeroo
2
Eaaersecanslseemuoecyceosbatsoeoeeootnheooneoesonl
2
Usrdneooeuerosariiisranskyieaidetcefaneaeodtqerood


AssertionError Traceback (most recent call last)
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

Hi , I have figured out the problem and the issue has been resolved. Y is assigned wrongly and it should follow the assignment instruction " Y[0] contains the same value as X[1]". Thanks.