Solved by ZetilenZoe in post #2 
              
              
                Okay okay. That is my bad. In the second part, I had to reinitialize the variable 'hidden" as 
hidden = (h0, c0)

before creating the input variable. Now, it gives exactly the same output.