mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-08 03:54:26 +08:00
refactor: Indent ... for visual purposes (#7744)
This commit is contained in:

committed by
GitHub

parent
e8915097c4
commit
9bba42eca8
@ -168,7 +168,7 @@ class Vector:
|
||||
9.539392014169456
|
||||
>>> Vector([]).euclidean_length()
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
Exception: Vector is empty
|
||||
"""
|
||||
if len(self.__components) == 0:
|
||||
@ -186,7 +186,7 @@ class Vector:
|
||||
85.40775111366095
|
||||
>>> Vector([3, 4, -1]).angle(Vector([2, -1]))
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
Exception: invalid operand!
|
||||
"""
|
||||
num = self * other
|
||||
|
Reference in New Issue
Block a user