'''
Задание 3.2.
Задан список, содержащий целые числа.
Напишите программу, которая выводит все элементы списка,
которые больше предыдущего, в виде отдельного списка.
'''
user_data = [ 1, 3, 53, 6, 7, 84, 24 ]
filtered = [
user_data[index]
for index in range(len(user_data))
if user_data[index - 1] < user_data[index]
]
print(user_data)
print(filtered)
To embed this project on your website, copy the following code and paste it into your website's HTML: