▲ | middayc 16 hours ago | |
If Python has special syntax for `if` and so makes if an expression, it doesn't mean that `if` is a function. If `if` is a function why don't you call it like other functions in Python?
Functions are first class in Python now AFAIK. Can you assign `if` to a variable?Also, blog-posts is not just about `if`, is `for` a function in Python, `def`, `return`, `class`? |