def count_elements(numbers):
return len(numbers)
def sort_ascending(numbers):
return sorted(numbers)
def is_arithmetic_progression(numbers):
difference = numbers[1] - numbers[0]
for i in range(len(numbers) - 1):
if numbers[i + 1] - numbers[i] != difference:
return False
return True
numbers = [int(x) for x in input("Enter a list of numbers: ").split()]
print("Number of elements in the list:", count_elements(numbers))
print("Sorted list:", sort_ascending(numbers))
print("Is the list an arithmetic progression:", is_arithmetic_progression(numbers))