AffirmedNetworks interview question

What do you mean by function in Python? Why do we even use it ?