<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def computeContribs(urls, rank):
 """Calculates URL contributions to the rank of other URLs."""

    num_urls = len(urls)
    for url in urls:
        yield (url, rank / num_urls)