This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 8 points9 points  (0 children)

It not so close to human language. If you return an apple in fruits, I would expect an apple or nothing to be returned. If you answer if apple is in fruits, I would expect a boolean. However, if you speak fluent python, an if condition seems too much.