I agree that this should also be suggested as an alternative to the python example. Its certainly more succinct.