I wrote a function that works fine but when I write an assert code, it gives an assertion error. My only problem in this code is to fix the assertion error.
d