0

Hello! I need a help. Python.

Why does an assertion error is occurring in this code? There is no any reasons for it. As i know, the assertion error is occurring, when the statement is false, but it is not in my code. https://code.sololearn.com/cfl2m9jHHeUS/?ref=app

17th Nov 2020, 1:08 PM
😎_M_😎
😎_M_😎 - avatar
2 Respostas
+ 2
l() returns None, it converts to False which makes the assertion error raises.
17th Nov 2020, 1:21 PM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 2
😎_M_😎 the function is not returning boolean it just prints which means unit
17th Nov 2020, 1:21 PM
Ananiya Jemberu
Ananiya Jemberu - avatar