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.

subscribers = '10 4 5 4 12 18' subscribers = list(map(int, subscribers.split())) print(max(subscribers), min(subscribers), sum(subscribers))

Questions about programming?Chat with your personal AI assistant