Python:
def miniMax(arr):
big = small = arr
big.remove(min(arr))
small.remove(max(arr))
print(small, big, arr)
obj = [1,2,3,4,5]
miniMax(obj)
def andOne(num):
num1 = num2 = num
num += 1
print(num1, num2, num)
obj2 = 5
andOne(obj2)
Код:
[2, 3, 4] [2, 3, 4] [2, 3, 4]
5 5 6