Ответ:
numbers = list(map(int, input("List elemets: ").split()))
numbers.sort()
print("Sorted list: ", numbers)
max_element = max(numbers)
min_element = min(numbers)
print("Max element: ", max_element)
print("Min element: ", min_element)
print("Elem. perevishausi: ")
for i in range(1, len(numbers)):
if numbers[i] > numbers[i-1]:
print(numbers[i])
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
numbers = list(map(int, input("List elemets: ").split()))
numbers.sort()
print("Sorted list: ", numbers)
max_element = max(numbers)
min_element = min(numbers)
print("Max element: ", max_element)
print("Min element: ", min_element)
print("Elem. perevishausi: ")
for i in range(1, len(numbers)):
if numbers[i] > numbers[i-1]:
print(numbers[i])