generate functionThu, 16 Feb 2023

The number of new channel subscribers by day is entered in one line separated by a space. Based on the entered string, it is necessary to form a list of integers. Then, display the maximum, minimum and total values of this list separated by a space.

def max_min_sum(numbers): numbers = list(map(int, numbers.split())) return (max(numbers), min(numbers), sum(numbers)) max_min_sum('1 2 3 4 5')

Questions about programming?Chat with your personal AI assistant