code: def urljoin(*fragments):
      
      # Strip possible already existent final slashes of fragments except for the last one
      parts = [fragment.rstrip('/') for fragment in fragments[:len(fragments) - 1]]
      parts.append(fragments[-1])
  
      return '/'.join(parts)
docs: Concatenate multi part strings into urls.