Difference between stored procedure and functions.

Discuss the difference between stored procedure and functions. Give an example of when you would use one compared to other. If you were a new database administrator, what it be easier to develop stored procedures or functions?