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 Answers
+ 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