mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-10-05 21:29:29 +00:00
Update max_min.py
This commit is contained in:
parent
2f42685328
commit
52fa1d8b74
|
@ -13,7 +13,22 @@ class Pair:
|
|||
Structure to store both maximum and minimum elements
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
def __init__(self) -> None:
|
||||
"""
|
||||
Initializes the Pair object with maximum and minimum elements
|
||||
|
||||
Args:
|
||||
None
|
||||
|
||||
Returns:
|
||||
None
|
||||
|
||||
>>> pair = Pair()
|
||||
>>> pair.max
|
||||
0
|
||||
>>> pair.min
|
||||
0
|
||||
"""
|
||||
self.max = 0
|
||||
self.min = 0
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user