Đặng Thị Ngọc Diệp
New member
Where does Python return nothing?
Answer
There is no such thing as “returning nothing ” in Python. Every function returns some value (unless it raises an exception). If no explicit return statement is used, Python treats it as returning None . So, you need to think about what is most appropriate for your function.
Answer
There is no such thing as “returning nothing ” in Python. Every function returns some value (unless it raises an exception). If no explicit return statement is used, Python treats it as returning None . So, you need to think about what is most appropriate for your function.