Totally New to Functions

Totally New to Functions

Hello Community.  I am entirly new to CRM deluge functions.  Trying to learn, but also have my feet to the fire on a deadline.  I need some help writing a custom function to update a "Account Country" field in the Cases Module based on the "Shipping Country" field in the Accounts Module. This is my first function, so I am a bit lost. Thanks!