Course 5 Week 1 Assignment 2 Cell 4

Not fully understand the the concept. Could anyone give some tips?

Create the list of input characters: X
  • rnn_forward uses the None value as a flag to set the input vector as a zero-vector.
  • Prepend the list [ None ] in front of the list of input characters.
  • There is more than one way to prepend a value to a list. One way is to add two lists together: ['a'] + ['b']

Got wrong output as follow:

AssertionError Traceback (most recent call last)
1 parameters, last_name = model(data.split("\n"), ix_to_char, char_to_ix, 22001, verbose = True)
----> 3 assert last_name == ‘Trodonosaurus\n’, “Wrong expected output”
4 print("\033[92mAll tests passed!")

AssertionError: Wrong expected output

I supposed the X was wrong in my code.

All that translates to just this:
X = [None] + single_example_ix

Thank you. It works.