Python Assertionerror False Is Not True When Moving To Function

Python Assertionerror False Is Not True When Moving To Function