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 lst of integers. It is required to sort the elements of this list in descending order and display the result on the screen with the command: print(*lst)

lst = [int(i) for i in input().split()] lst.sort(reverse=True) print(*lst)

Questions about programming?Chat with your personal AI assistant