mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
Simplify sudoku.is_completed() using builtin all() (#1608)
* Simplify sudoku.is_completed() using builtin all() Simplify __sudoku.is_completed()__ using Python builtin function [__all()__](https://docs.python.org/3/library/functions.html#all). * fixup! Format Python code with psf/black push * Update sudoku.py * fixup! Format Python code with psf/black push * Old style exception -> new style for Python 3 * updating DIRECTORY.md * Update convex_hull.py * fixup! Format Python code with psf/black push * e.args[0] = "msg" * ValueError: could not convert string to float: 'pi' * Update convex_hull.py * fixup! Format Python code with psf/black push
This commit is contained in:
@ -104,9 +104,7 @@ class Graph:
|
||||
# u -> v(w)
|
||||
for u in self.adjList:
|
||||
print(
|
||||
u,
|
||||
"->",
|
||||
" -> ".join(str(f"{v}({w})") for v, w in self.adjList[u]),
|
||||
u, "->", " -> ".join(str(f"{v}({w})") for v, w in self.adjList[u]),
|
||||
)
|
||||
|
||||
def dijkstra(self, src):
|
||||
|
Reference in New Issue
Block a user