mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 17:34:49 +08:00
Misc fixes across multiple algorithms (#6912)
Source: Snyk code quality Add scikit-fuzzy to requirements Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
This commit is contained in:
@ -75,11 +75,12 @@ def main():
|
||||
"""Call Extended Euclidean Algorithm."""
|
||||
if len(sys.argv) < 3:
|
||||
print("2 integer arguments required")
|
||||
exit(1)
|
||||
return 1
|
||||
a = int(sys.argv[1])
|
||||
b = int(sys.argv[2])
|
||||
print(extended_euclidean_algorithm(a, b))
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
raise SystemExit(main())
|
||||
|
Reference in New Issue
Block a user