mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-04 16:57:32 +08:00
Ruff fixes (#8913)
* updating DIRECTORY.md * Fix ruff error in eulerian_path_and_circuit_for_undirected_graph.py * Fix ruff error in newtons_second_law_of_motion.py --------- Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@ -60,7 +60,7 @@ def newtons_second_law_of_motion(mass: float, acceleration: float) -> float:
|
||||
>>> newtons_second_law_of_motion(2.0, 1)
|
||||
2.0
|
||||
"""
|
||||
force = float()
|
||||
force = 0.0
|
||||
try:
|
||||
force = mass * acceleration
|
||||
except Exception:
|
||||
|
Reference in New Issue
Block a user