code: 
  
  """simple docstring"""
  def 				a__	(	lowerCAmelCase ,  lowerCAmelCase						)  ->   int:
        print("""\nVertex Distance"""						)
        for i in range(lowerCAmelCase						):
              if dist[i] != float("""inf"""						):
                    print(lowerCAmelCase ,  """\t""" ,  int(dist[i]						) ,  end="""\t"""						)
              else:
                    print(lowerCAmelCase ,  """\t""" ,  """INF""" ,  end="""\t"""						)
              print()
  
  
  
  
  def 				a__	(	lowerCAmelCase ,  lowerCAmelCase ,  lowerCAmelCase						)  ->   List[Any]:
        UpperCAmelCase__ :       int						=						float("""inf"""						)
        UpperCAmelCase__ :       Any						=						-1
        for i in range(lowerCAmelCase						):
              if (not vset[i]) and mdist[i] < min_val:
                    UpperCAmelCase__ :       int						=						i
                    UpperCAmelCase__ :       Union[str, Any]						=						mdist[i]
        return min_ind
  
  
  
  
  def 				a__	(	lowerCAmelCase ,  lowerCAmelCase ,  lowerCAmelCase						)  ->   Tuple:
        UpperCAmelCase__ :       Dict						=						[float("""inf"""						) for _ in range(lowerCAmelCase						)]
        UpperCAmelCase__ :       Dict						=						[False for _ in range(lowerCAmelCase						)]
        UpperCAmelCase__ :       List[str]						=						0.0
  
        for _ in range(v - 1						):
              UpperCAmelCase__ :       Union[str, Any]						=						min_dist(lowerCAmelCase ,  lowerCAmelCase ,  lowerCAmelCase						)
              UpperCAmelCase__ :       Union[str, Any]						=						True
  
              for i in range(lowerCAmelCase						):
                    if (
                        (not vset[i])
                        and graph[u][i] != float("""inf"""						)
                        and mdist[u] + graph[u][i] < mdist[i]
                    ):
                          UpperCAmelCase__ :       Union[str, Any]						=						mdist[u] + graph[u][i]
  
        print_dist(lowerCAmelCase ,  lowerCAmelCase						)
  
  
  if __name__ == "__main__":
      _A						=     int(input("""Enter number of vertices: """).strip())
      _A						=     int(input("""Enter number of edges: """).strip())
  
      _A						=     [[float("""inf""") for i in range(V)] for j in range(V)]
  
      for i in range(V):
          _A						=     0.0
  
      for i in range(E):
          print("""\nEdge """, i + 1)
          _A						=     int(input("""Enter source:""").strip())
          _A						=     int(input("""Enter destination:""").strip())
          _A						=     float(input("""Enter weight:""").strip())
          _A						=     weight
  
      _A						=     int(input("""\nEnter shortest path source:""").strip())
      dijkstra(graph, V, gsrc)
  
  
style_context: 
  
  """simple docstring"""
  def 				a__	(	lowerCAmelCase ,  lowerCAmelCase						)  ->   str:
        if not isinstance(lowerCAmelCase ,  lowerCAmelCase						):
              raise TypeError("""plaintext must be a string"""						)
        if not isinstance(lowerCAmelCase ,  lowerCAmelCase						):
              raise TypeError("""key must be a string"""						)
  
        if not plaintext:
              raise ValueError("""plaintext is empty"""						)
        if not key:
              raise ValueError("""key is empty"""						)
  
        key += plaintext
        UpperCAmelCase__ :       Dict						=						plaintext.lower()
        UpperCAmelCase__ :       Tuple						=						key.lower()
        UpperCAmelCase__ :       Optional[int]						=						0
        UpperCAmelCase__ :       Tuple						=						0
        UpperCAmelCase__ :       Optional[int]						=						""""""
        while plaintext_iterator < len(lowerCAmelCase						):
              if (
                  ord(plaintext[plaintext_iterator]						) < 97
                  or ord(plaintext[plaintext_iterator]						) > 1_22
              ):
                    ciphertext += plaintext[plaintext_iterator]
                    plaintext_iterator += 1
              elif ord(key[key_iterator]						) < 97 or ord(key[key_iterator]						) > 1_22:
                    key_iterator += 1
              else:
                    ciphertext += chr(
                        (
                            (ord(plaintext[plaintext_iterator]						) - 97 + ord(key[key_iterator]						))
                            - 97
                        )
                        % 26
                        + 97						)
                    key_iterator += 1
                    plaintext_iterator += 1
        return ciphertext
  
  
  
  
  def 				a__	(	lowerCAmelCase ,  lowerCAmelCase						)  ->   str:
        if not isinstance(lowerCAmelCase ,  lowerCAmelCase						):
              raise TypeError("""ciphertext must be a string"""						)
        if not isinstance(lowerCAmelCase ,  lowerCAmelCase						):
              raise TypeError("""key must be a string"""						)
  
        if not ciphertext:
              raise ValueError("""ciphertext is empty"""						)
        if not key:
              raise ValueError("""key is empty"""						)
  
        UpperCAmelCase__ :       Union[str, Any]						=						key.lower()
        UpperCAmelCase__ :       int						=						0
        UpperCAmelCase__ :       int						=						0
        UpperCAmelCase__ :       int						=						""""""
        while ciphertext_iterator < len(lowerCAmelCase						):
              if (
                  ord(ciphertext[ciphertext_iterator]						) < 97
                  or ord(ciphertext[ciphertext_iterator]						) > 1_22
              ):
                    plaintext += ciphertext[ciphertext_iterator]
              else:
                    plaintext += chr(
                        (ord(ciphertext[ciphertext_iterator]						) - ord(key[key_iterator]						)) % 26
                        + 97						)
                    key += chr(
                        (ord(ciphertext[ciphertext_iterator]						) - ord(key[key_iterator]						)) % 26
                        + 97						)
                    key_iterator += 1
              ciphertext_iterator += 1
        return plaintext
  
  
  if __name__ == "__main__":
      import doctest
  
      doctest.testmod()
      _A						=     int(input("""Type 1 to encrypt or 2 to decrypt:"""))
      if operation == 1:
          _A						=     input("""Typeplaintext to be encrypted:\n""")
          _A						=     input("""Type the key:\n""")
          print(encrypt(plaintext, key))
      elif operation == 2:
          _A						=     input("""Type the ciphertext to be decrypted:\n""")
          _A						=     input("""Type the key:\n""")
          print(decrypt(ciphertext, key))
      decrypt("""jsqqs avvwo""", """coffee""")
  
  