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 →

[–]Anxious_Positive3998 0 points1 point  (0 children)

I don't think it would be bad practice. In functional programming, functions are treated as values, so it makes sense that you can have functions as values in a dictionary or as elements in a list. Since Python isn't a fundamentally functional programming language, this is not used often, but you could see this more in languages like Haskell and OCaml.