point_list = []
dog_numbers = int(input('Введите количество собак: '))
for _ in range(dog_numbers):
dog_point = int(input('Введите очки собак: '))
point_list.append(dog_point)
print(point_list)
maximum = point_list[0]
minimum = point_list[0]
i_max = 0
i_min = 0
for i, number in enumerate(point_list):
if number > maximum:
maximum = number
i_max = i
elif number < minimum:
minimum = number
i_min = i
point_list[i_min], point_list[i_max] = point_list[i_max], point_list[i_min]
print(point_list)
point_list = []
dog_numbers = int(input('Введите количество собак: '))
for _ in range(dog_numbers):
dog_point = int(input('Введите очки собак: '))
point_list.append(dog_point)
print(point_list)
maximum = point_list[0]
minimum = point_list[0]
i_max = 0
i_min = 0
for i, number in enumerate(point_list):
if number > maximum:
maximum = number
i_max = i
elif number < minimum:
minimum = number
i_min = i
print(i_max, i_min)
text = input('number: ')
max = 0
for numb in text:
numb = int(numb)
if numb > max:
max = numb
print('Максимальное число: ', max)