Week2 ex5, the output is different from the expected output, but says "All tests passed!"

That probably means that either your notebook or your public_tests.py file (or both) are out of date.

There is a topic on the FAQ Thread about how to get fresh copies of both, but you need to read the instructions carefully all the way to the last paragraph to learn about the additional “dot py” files.