Да, можно. В Python функции являются объектами "первого класса".
python
Register or sign in to get access to full answers for all questions from the question bank.