<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sha1(s):
 """ Returns a sha1 of the given string """

    h = hashlib.new('sha1')
    h.update(s)
    return h.hexdigest()